Method: platforms.accounts.sites.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 all the sites associated with a specific AdSense account.\u003c/p\u003e\n"],["\u003cp\u003eAllows for pagination to handle large numbers of sites, with customizable page size.\u003c/p\u003e\n"],["\u003cp\u003eRequires authorization with specific AdSense scopes for access.\u003c/p\u003e\n"],["\u003cp\u003eProvides details on the HTTP request structure, including path and query parameters.\u003c/p\u003e\n"],["\u003cp\u003eReturns a response containing a list of sites and a token for retrieving subsequent pages.\u003c/p\u003e\n"]]],["This document outlines the process for listing sites associated with a specific account using an HTTP GET request. The request URL, formatted with gRPC Transcoding, requires a `parent` path parameter specifying the account. Optional query parameters include `pageSize` to limit results and `pageToken` for pagination. The request body must be empty. The successful response body includes an array of `sites` and a `nextPageToken` for further pagination. Authorization requires either `adsense` or `adsense.readonly` OAuth scopes.\n"],null,["# Method: platforms.accounts.sites.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.ListSitesResponse.SCHEMA_REPRESENTATION)\n- [Authorization scopes](#body.aspect)\n- [Try it!](#try-it)\n\nLists sites for a specific account.\n\n### HTTP request\n\n`GET https://adsenseplatform.googleapis.com/v1/{parent=platforms/*/accounts/*}/sites`\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 sites. Format: platforms/{platform}/accounts/{account} |\n\n### Query parameters\n\n| Parameters ||\n|-------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `pageSize` | `integer` The maximum number of sites to include in the response, used for paging. If unspecified, at most 10000 sites will be returned. The maximum value is 10000; values above 10000 will be coerced to 10000. |\n| `pageToken` | `string` A page token, received from a previous `sites.list` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `sites.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 site list rpc.\n\nIf successful, the response body contains data with the following structure:\n\n| JSON representation |\n|-----------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"sites\": [ { object (/adsense/platforms/reference/rest/v1/platforms.accounts.sites#Site) } ], \"nextPageToken\": string } ``` |\n\n| Fields ||\n|-----------------|-----------------------------------------------------------------------------------------------------------------------------------------------------|\n| `sites[]` | `object (`[Site](/adsense/platforms/reference/rest/v1/platforms.accounts.sites#Site)`)` The sites returned in this list response. |\n| `nextPageToken` | `string` Continuation token used to page through sites. 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`"]]