Method: platforms.accounts.sites.get
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 2024-08-21 UTC.
[null,null,["Last updated 2024-08-21 UTC."],[[["\u003cp\u003eRetrieves a specific site's information within a given sub-account using a GET request.\u003c/p\u003e\n"],["\u003cp\u003eRequires providing the site's name in the URL path using a specific format.\u003c/p\u003e\n"],["\u003cp\u003eAn empty request body is necessary and a successful response returns a Site object.\u003c/p\u003e\n"],["\u003cp\u003eAuthorization necessitates using either \u003ccode\u003eadsense\u003c/code\u003e or \u003ccode\u003eadsense.readonly\u003c/code\u003e OAuth scopes.\u003c/p\u003e\n"]]],["This API endpoint retrieves a site from a designated sub-account using a `GET` request. The URL, formatted using gRPC Transcoding syntax, requires a `name` path parameter specifying the site's identifier. The request body should be empty. A successful response returns a `Site` object. This operation requires either the `https://www.googleapis.com/auth/adsense` or `https://www.googleapis.com/auth/adsense.readonly` authorization scopes.\n"],null,["# Method: platforms.accounts.sites.get\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n- [Authorization scopes](#body.aspect)\n- [Try it!](#try-it)\n\nGets a site from a specified sub-account.\n\n### HTTP request\n\n`GET https://adsenseplatform.googleapis.com/v1/{name=platforms/*/accounts/*/sites/*}`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n| Parameters ||\n|--------|-------------------------------------------------------------------------------------------------------------------|\n| `name` | `string` Required. The name of the site to retrieve. Format: platforms/{platform}/accounts/{account}/sites/{site} |\n\n### Request body\n\nThe request body must be empty.\n\n### Response body\n\nIf successful, the response body contains an instance of [Site](/adsense/platforms/reference/rest/v1/platforms.accounts.sites#Site).\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`"]]