AI-generated Key Takeaways
-
This method returns all accounts accessible by the caller, excluding soft-deleted accounts by default unless
showDeleted
is specified. -
The request uses a GET method with the URL
https://analyticsadmin.googleapis.com/v1alpha/accounts
. -
Query parameters like
pageSize
,pageToken
, andshowDeleted
can be used to control the pagination and filtering of results. -
The response body contains a list of
accounts
and anextPageToken
for pagination. -
The method requires authorization using either the
https://www.googleapis.com/auth/analytics.readonly
orhttps://www.googleapis.com/auth/analytics.edit
OAuth scope.
Returns all accounts accessible by the caller.
Note that these accounts might not currently have GA properties. Soft-deleted (ie: "trashed") accounts are excluded by default. Returns an empty list if no relevant accounts are found.
HTTP request
GET https://analyticsadmin.googleapis.com/v1alpha/accounts
The URL uses gRPC Transcoding syntax.
Query parameters
Parameters | |
---|---|
pageSize |
The maximum number of 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 |
showDeleted |
Whether to include soft-deleted (ie: "trashed") Accounts in the results. Accounts can be inspected to determine whether they are deleted or not. |
Request body
The request body must be empty.
Response body
Request message for accounts.list RPC.
If successful, the response body contains data with the following structure:
JSON representation |
---|
{
"accounts": [
{
object ( |
Fields | |
---|---|
accounts[] |
Results that were accessible to the caller. |
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