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.
[[["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 2024-08-21 UTC."],[[["\u003cp\u003eRetrieves a specific site's information within a sub-account using a GET request.\u003c/p\u003e\n"],["\u003cp\u003eRequires providing the site's name in the URL path using a specified format.\u003c/p\u003e\n"],["\u003cp\u003eReturns a detailed representation of the site, including its properties and configuration, if successful.\u003c/p\u003e\n"],["\u003cp\u003eNeeds authorization with specific Google Adsense scopes for access control and permissions.\u003c/p\u003e\n"]]],["This document details retrieving a site from a sub-account via a `GET` request to the specified URL: `https://adsenseplatform.googleapis.com/v1alpha/{name=platforms/*/accounts/*/sites/*}`. The `name` parameter, a string, is required in the path to identify the site. The request body should be empty. A successful response returns a `Site` instance. Authorization requires either the `https://www.googleapis.com/auth/adsense` or `https://www.googleapis.com/auth/adsense.readonly` OAuth 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/v1alpha/{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/v1alpha/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`"]]