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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-07-04 UTC."],[[["\u003cp\u003eLists a partial view of sub-accounts under a specific parent platform, retrieving account name and creation request ID.\u003c/p\u003e\n"],["\u003cp\u003eAllows pagination to retrieve large lists of accounts with \u003ccode\u003epageSize\u003c/code\u003e and \u003ccode\u003epageToken\u003c/code\u003e parameters.\u003c/p\u003e\n"],["\u003cp\u003eRequires authorization with either \u003ccode\u003ehttps://www.googleapis.com/auth/adsense\u003c/code\u003e or \u003ccode\u003ehttps://www.googleapis.com/auth/adsense.readonly\u003c/code\u003e scopes.\u003c/p\u003e\n"],["\u003cp\u003eUses a GET request to the endpoint \u003ccode\u003ehttps://adsenseplatform.googleapis.com/v1/{parent=platforms/*}/accounts\u003c/code\u003e, specifying the parent platform in the path.\u003c/p\u003e\n"],["\u003cp\u003eProvides an empty request body and a response containing an array of accounts and a \u003ccode\u003enextPageToken\u003c/code\u003e for pagination.\u003c/p\u003e\n"]]],["This document details how to retrieve a list of sub-accounts for a parent account. A `GET` request is made to `https://adsenseplatform.googleapis.com/v1/{parent=platforms/*}/accounts`. The `parent` path parameter is required, specifying the platform. Optional query parameters, `pageSize` and `pageToken`, allow for pagination. The request body must be empty. The successful response includes an array of `accounts` and a `nextPageToken` for pagination. OAuth scopes `adsense` or `adsense.readonly` are required for authorization.\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/v1/{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/v1/platforms.accounts#Account) } ], \"nextPageToken\": string } ``` |\n\n| Fields ||\n|-----------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `accounts[]` | `object (`[Account](/adsense/platforms/reference/rest/v1/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`"]]