- HTTP request
- Query parameters
- Request body
- Response body
- Authorization scopes
- AccountSummary
- PropertySummary
- Try it!
Returns summaries of all accounts accessible by the caller.
HTTP request
GET https://analyticsadmin.googleapis.com/v1beta/accountSummaries
The URL uses gRPC Transcoding syntax.
Query parameters
Parameters | |
---|---|
pageSize |
The maximum number of AccountSummary resources to return. The service may return fewer than this value, even if there are additional pages. If unspecified, at most 50 resources will be returned. The maximum value is 200; (higher values will be coerced to the maximum) |
pageToken |
A page token, received from a previous |
Request body
The request body must be empty.
Response body
Response message for accountSummaries.list RPC.
If successful, the response body contains data with the following structure:
JSON representation |
---|
{
"accountSummaries": [
{
object ( |
Fields | |
---|---|
accountSummaries[] |
Account summaries of all accounts the caller has access to. |
nextPageToken |
A token, which can be sent as |
Authorization scopes
Requires one of the following OAuth scopes:
https://www.googleapis.com/auth/analytics.readonly
https://www.googleapis.com/auth/analytics.edit
AccountSummary
A virtual resource representing an overview of an account and all its child GA4 properties.
JSON representation |
---|
{
"name": string,
"account": string,
"displayName": string,
"propertySummaries": [
{
object ( |
Fields | |
---|---|
name |
Resource name for this account summary. Format: accountSummaries/{account_id} Example: "accountSummaries/1000" |
account |
Resource name of account referred to by this account summary Format: accounts/{account_id} Example: "accounts/1000" |
displayName |
Display name for the account referred to in this account summary. |
propertySummaries[] |
List of summaries for child accounts of this account. |
PropertySummary
A virtual resource representing metadata for a GA4 property.
JSON representation |
---|
{
"property": string,
"displayName": string,
"propertyType": enum ( |
Fields | |
---|---|
property |
Resource name of property referred to by this property summary Format: properties/{property_id} Example: "properties/1000" |
displayName |
Display name for the property referred to in this property summary. |
propertyType |
The property's property type. |
parent |
Resource name of this property's logical parent. Note: The Property-Moving UI can be used to change the parent. Format: accounts/{account}, properties/{property} Example: "accounts/100", "properties/200" |