Method: platforms.accounts.list
Stay organized with collections
Save and categorize content based on your preferences.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-07-04 UTC.
[null,null,["Last updated 2025-07-04 UTC."],[[["\u003cp\u003eLists a partial view of sub-accounts under a specific parent platform.\u003c/p\u003e\n"],["\u003cp\u003eAllows filtering by page size and using pagination for large result sets.\u003c/p\u003e\n"],["\u003cp\u003eRequest body should be empty, and the response includes an array of accounts and a token for retrieving subsequent pages.\u003c/p\u003e\n"],["\u003cp\u003eRequires authorization with either \u003ccode\u003eadsense\u003c/code\u003e or \u003ccode\u003eadsense.readonly\u003c/code\u003e scope.\u003c/p\u003e\n"]]],["This document details the process of listing sub-accounts for a parent account via an HTTP GET request to `https://adsenseplatform.googleapis.com/v1alpha/{parent=platforms/*}/accounts`. The `parent` path parameter is required to specify the platform. Optional query parameters `pageSize` and `pageToken` control pagination. The request body must be empty. The response includes an array of `accounts`, each with `name` and `creationRequestId`, and a `nextPageToken` for pagination. The operation requires either `adsense` or `adsense.readonly` authorization scope.\n"],null,["# Method: platforms.accounts.list\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Query parameters](#body.QUERY_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n - [JSON representation](#body.ListAccountsResponse.SCHEMA_REPRESENTATION)\n- [Authorization scopes](#body.aspect)\n- [Try it!](#try-it)\n\nLists a partial view of sub-accounts for a specific parent account.\n\n### HTTP request\n\n`GET https://adsenseplatform.googleapis.com/v1alpha/{parent=platforms/*}/accounts`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n| Parameters ||\n|----------|------------------------------------------------------------------------------------|\n| `parent` | `string` Required. Platform who parents the accounts. Format: platforms/{platform} |\n\n### Query parameters\n\n| Parameters ||\n|-------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `pageSize` | `integer` Optional. The maximum number of accounts to include in the response, used for paging. If unspecified, at most 10000 accounts will be returned. The maximum value is 10000; values above 10000 will be coerced to 10000. |\n| `pageToken` | `string` Optional. A page token, received from a previous `accounts.list` call. Provide this to retrieve the subsequent page. |\n\n### Request body\n\nThe request body must be empty.\n\n### Response body\n\nResponse definition for the list accounts rpc.\n\nIf successful, the response body contains data with the following structure:\n\n| JSON representation |\n|----------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"accounts\": [ { object (/adsense/platforms/reference/rest/v1alpha/platforms.accounts#Account) } ], \"nextPageToken\": string } ``` |\n\n| Fields ||\n|-----------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `accounts[]` | `object (`[Account](/adsense/platforms/reference/rest/v1alpha/platforms.accounts#Account)`)` The Accounts returned in the list response. Represented by a partial view of the Account resource, populating `name` and `creationRequestId`. |\n| `nextPageToken` | `string` Continuation token used to page through accounts. To retrieve the next page of the results, set the next request's \"pageToken\" value to this. |\n\n### Authorization scopes\n\nRequires one of the following OAuth scopes:\n\n- `https://www.googleapis.com/auth/adsense`\n- `\n https://www.googleapis.com/auth/adsense.readonly`"]]