List
Lists properties to which the user has access.
GET https://ga-services-zvqgeah36q-uc.a.run.app/ga/web-properties/list/
Query Parameters
Name
Type
Description
name*
String
ft-4
connection_name*
String
ga-02
account_id*
String
6712930
Headers
Name
Type
Description
x-api-key*
String
U2Fsd...
Authorization*
String
ya29.a0Aa4xrXPgfscocWaLFAjpjVmeOE4ylR25e2z_XAHwWXzNEUoyCCcA4MticQ1x2Ku_CUnNCcAg2zg_Oc_UWd_gVUr80gfYLVchm_k5am51ObCiVVn8RdRBJbJRw2S9621BBpxtzRjXxu0Q7LqdELX3HjIoaatm_sq_vXRwN_4l0vDbAxEaCgYKATASARMSFQEjDvL9mdgUKe6n1K7ptMwJrY19xQ0182
{
"kind": "analytics#webproperties",
"username": "sschouse@gmail.com",
"totalResults": 1,
"startIndex": 1,
"itemsPerPage": 1000,
"items": [
{
"id": "UA-6712930-1",
"kind": "analytics#webproperty",
"selfLink": "https://www.googleapis.com/analytics/v3/management/accounts/6712930/webproperties/UA-6712930-1",
"accountId": "6712930",
"internalWebPropertyId": "12923520",
"name": "http://sschouse.site50.net/",
"websiteUrl": "http://sschouse.site50.net/",
"level": "STANDARD",
"profileCount": 1,
"dataRetentionTtl": "MONTHS_26",
"dataRetentionResetOnNewActivity": true,
"permissions": {
"effective": [
"COLLABORATE",
"EDIT",
"MANAGE_USERS",
"READ_AND_ANALYZE"
]
},
"created": "2008-12-17T15:17:05.000Z",
"updated": "2013-11-20T14:28:58.158Z",
"parentLink": {
"type": "analytics#account",
"href": "https://www.googleapis.com/analytics/v3/management/accounts/6712930"
},
"childLink": {
"type": "analytics#profiles",
"href": "https://www.googleapis.com/analytics/v3/management/accounts/6712930/webproperties/UA-6712930-1/profiles"
}
}
]
}curl --location --request GET 'https://ga-services-zvqgeah36q-uc.a.run.app/ga/web-properties/list?name=ft-4&connection_name=ga-02&account_id=6712930' \
--header 'x-api-key: U2Fsd...' \
--header 'Authorization: ya29.a0Aa4xrXPgfscocWaLFAjpjVmeOE4ylR25e2z_XAHwWXzNEUoyCCcA4MticQ1x2Ku_CUnNCcAg2zg_Oc_UWd_gVUr80gfYLVchm_k5am51ObCiVVn8RdRBJbJRw2S9621BBpxtzRjXxu0Q7LqdELX3HjIoaatm_sq_vXRwN_4l0vDbAxEaCgYKATASARMSFQEjDvL9mdgUKe6n1K7ptMwJrY19xQ0182'var axios = require('axios');
var config = {
method: 'get',
url: 'https://ga-services-zvqgeah36q-uc.a.run.app/ga/web-properties/list?name=ft-4&connection_name=ga-02&account_id=6712930',
headers: {
'x-api-key': 'U2Fsd...',
'Authorization': 'ya29.a0Aa4xrXPgfscocWaLFAjpjVmeOE4ylR25e2z_XAHwWXzNEUoyCCcA4MticQ1x2Ku_CUnNCcAg2zg_Oc_UWd_gVUr80gfYLVchm_k5am51ObCiVVn8RdRBJbJRw2S9621BBpxtzRjXxu0Q7LqdELX3HjIoaatm_sq_vXRwN_4l0vDbAxEaCgYKATASARMSFQEjDvL9mdgUKe6n1K7ptMwJrY19xQ0182'
}
};
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/web-properties/list?name=ft-4&connection_name=ga-02&account_id=6712930',
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.a0Aa4xrXPgfscocWaLFAjpjVmeOE4ylR25e2z_XAHwWXzNEUoyCCcA4MticQ1x2Ku_CUnNCcAg2zg_Oc_UWd_gVUr80gfYLVchm_k5am51ObCiVVn8RdRBJbJRw2S9621BBpxtzRjXxu0Q7LqdELX3HjIoaatm_sq_vXRwN_4l0vDbAxEaCgYKATASARMSFQEjDvL9mdgUKe6n1K7ptMwJrY19xQ0182'
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
Last updated