Method: accounts.platforms.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\u003eThis endpoint retrieves a list of platforms associated with a specific account using a \u003ccode\u003eGET\u003c/code\u003e request.\u003c/p\u003e\n"],["\u003cp\u003eThe request requires a \u003ccode\u003eparent\u003c/code\u003e path parameter to specify the account and supports optional \u003ccode\u003epageSize\u003c/code\u003e and \u003ccode\u003epageToken\u003c/code\u003e query parameters for pagination.\u003c/p\u003e\n"],["\u003cp\u003eThe request body must be empty, and the response body contains a list of \u003ccode\u003eplatforms\u003c/code\u003e objects and a \u003ccode\u003enextPageToken\u003c/code\u003e for retrieving subsequent pages.\u003c/p\u003e\n"],["\u003cp\u003eAuthorization for this operation requires either the \u003ccode\u003ehttps://www.googleapis.com/auth/adsense\u003c/code\u003e or \u003ccode\u003ehttps://www.googleapis.com/auth/adsense.readonly\u003c/code\u003e OAuth scope.\u003c/p\u003e\n"]]],["This document details how to list platforms for a specific account using the AdSense platform API. The `GET` HTTP request is made to `https://adsenseplatform.googleapis.com/v1alpha/{parent=accounts/*}/platforms`. Required path parameter `parent` specifies the account. Optional query parameters `pageSize` (max 10000) and `pageToken` allow pagination. The request body must be empty. The successful response contains a list of platforms in the `platforms` field and `nextPageToken` for further pagination. The Authorization needs either `adsense` or `adsense.readonly` scope.\n"],null,["# Method: accounts.platforms.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.ListPlatformsResponse.SCHEMA_REPRESENTATION)\n- [Authorization scopes](#body.aspect)\n- [Try it!](#try-it)\n\nLists platforms for a specified account.\n\n### HTTP request\n\n`GET https://adsenseplatform.googleapis.com/v1alpha/{parent=accounts/*}/platforms`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n| Parameters ||\n|----------|-------------------------------------------------------------------------------------|\n| `parent` | `string` Required. The account which owns the platforms. Format: accounts/{account} |\n\n### Query parameters\n\n| Parameters ||\n|-------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `pageSize` | `integer` Optional. The maximum number of platforms to include in the response, used for paging. If unspecified, at most 10000 platforms 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 `platforms.list` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `platforms.list` must match the call that provided the page token. |\n\n### Request body\n\nThe request body must be empty.\n\n### Response body\n\nResponse definition for the platform list rpc.\n\nIf successful, the response body contains data with the following structure:\n\n| JSON representation |\n|------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"platforms\": [ { object (/adsense/platforms/reference/rest/v1alpha/accounts.platforms#Platform) } ], \"nextPageToken\": string } ``` |\n\n| Fields ||\n|-----------------|---------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `platforms[]` | `object (`[Platform](/adsense/platforms/reference/rest/v1alpha/accounts.platforms#Platform)`)` The platforms returned in this list response. |\n| `nextPageToken` | `string` Continuation token used to page through platforms. 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`"]]