List
Lists profile-user links for a given view (profile).
GET https://ga-services-zvqgeah36q-uc.a.run.app/ga/profile-user-links/list/
Query Parameters
Name
Type
Description
name*
String
ft-4
connection_name*
String
ga-02
account_id*
String
6712930
webproperty_id*
String
UA-6712930-1
profiles_id*
String
13573529
Headers
Name
Type
Description
x-api-key*
String
U2Fsd...
Authorization*
String
ya29.a0Aa4xrXP2nW8vtUwXPEpzxUZ3URJ79rQEBqWBgNXN74KbbvBpuLODaszM4wxwsqnlx0uHKIXvpym9uo7woCheQMd3XX-T3BUSrNTKitqY0g5inEnBgxZLtFvwwGmRC_gUyHzjAwAaJc3jIjQm5T6ucs3J1_WDXjs6RqolZmEkuSMnH2caCgYKATASARMSFQEjDvL9LKk7m4osaThLlLDyp5qL7w0182
{
"kind": "analytics#entityUserLinks",
"totalResults": 1,
"startIndex": 1,
"itemsPerPage": 1000,
"items": [
{
"id": "13573529:112775482771342024019",
"kind": "analytics#entityUserLink",
"selfLink": "https://www.googleapis.com/analytics/v3/management/accounts/6712930/webproperties/UA-6712930-1/profiles/13573529/entityUserLinks/13573529:112775482771342024019",
"entity": {
"profileRef": {
"id": "13573529",
"kind": "analytics#profileRef",
"href": "https://www.googleapis.com/analytics/v3/management/accounts/6712930/webproperties/UA-6712930-1/profiles/13573529",
"accountId": "6712930",
"webPropertyId": "UA-6712930-1",
"internalWebPropertyId": "12923520",
"name": "sschouse.site50.net/"
}
},
"userRef": {
"kind": "analytics#userRef",
"id": "112775482771342024019",
"email": "sschouse@gmail.com"
},
"permissions": {
"effective": [
"COLLABORATE",
"EDIT",
"MANAGE_USERS",
"READ_AND_ANALYZE"
],
"local": []
}
}
]
}curl --location --request GET 'https://ga-services-zvqgeah36q-uc.a.run.app/ga/profile-user-links/list?name=ft-4&connection_name=ga-02&account_id=6712930&webproperty_id=UA-6712930-1&profiles_id=13573529' \
--header 'x-api-key: U2Fsd...' \
--header 'Authorization: ya29.a0Aa4xrXP2nW8vtUwXPEpzxUZ3URJ79rQEBqWBgNXN74KbbvBpuLODaszM4wxwsqnlx0uHKIXvpym9uo7woCheQMd3XX-T3BUSrNTKitqY0g5inEnBgxZLtFvwwGmRC_gUyHzjAwAaJc3jIjQm5T6ucs3J1_WDXjs6RqolZmEkuSMnH2caCgYKATASARMSFQEjDvL9LKk7m4osaThLlLDyp5qL7w0182'var axios = require('axios');
var config = {
method: 'get',
url: 'https://ga-services-zvqgeah36q-uc.a.run.app/ga/profile-user-links/list?name=ft-4&connection_name=ga-02&account_id=6712930&webproperty_id=UA-6712930-1&profiles_id=13573529',
headers: {
'x-api-key': 'U2Fsd...',
'Authorization': 'ya29.a0Aa4xrXP2nW8vtUwXPEpzxUZ3URJ79rQEBqWBgNXN74KbbvBpuLODaszM4wxwsqnlx0uHKIXvpym9uo7woCheQMd3XX-T3BUSrNTKitqY0g5inEnBgxZLtFvwwGmRC_gUyHzjAwAaJc3jIjQm5T6ucs3J1_WDXjs6RqolZmEkuSMnH2caCgYKATASARMSFQEjDvL9LKk7m4osaThLlLDyp5qL7w0182'
}
};
axios(config)
.then(function (response) {
console.log(JSON.stringify(response.data));
})
.catch(function (error) {
console.log(error);
});
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://ga-services-zvqgeah36q-uc.a.run.app/ga/profile-user-links/list?name=ft-4&connection_name=ga-02&account_id=6712930&webproperty_id=UA-6712930-1&profiles_id=13573529',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_HTTPHEADER => array(
'x-api-key: U2Fsd...',
'Authorization: ya29.a0Aa4xrXP2nW8vtUwXPEpzxUZ3URJ79rQEBqWBgNXN74KbbvBpuLODaszM4wxwsqnlx0uHKIXvpym9uo7woCheQMd3XX-T3BUSrNTKitqY0g5inEnBgxZLtFvwwGmRC_gUyHzjAwAaJc3jIjQm5T6ucs3J1_WDXjs6RqolZmEkuSMnH2caCgYKATASARMSFQEjDvL9LKk7m4osaThLlLDyp5qL7w0182'
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
Last updated