Method: accounts.sites.get
Stay organized with collections
Save and categorize content based on your preferences.
Gets information about the selected site.
HTTP request
GET https://adsense.googleapis.com/v2/{name=accounts/*/sites/*}
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters |
name |
string
Required. Name of the site. Format: accounts/{account}/sites/{site}
|
Request body
The request body must be empty.
Response body
If successful, the response body contains an instance of Site
.
Authorization scopes
Requires one of the following OAuth scopes:
https://www.googleapis.com/auth/adsense
https://www.googleapis.com/auth/adsense.readonly
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 detailed information about a specific AdSense site using its unique identifier.\u003c/p\u003e\n"],["\u003cp\u003eRequires authorization with either \u003ccode\u003eadsense\u003c/code\u003e or \u003ccode\u003eadsense.readonly\u003c/code\u003e scope.\u003c/p\u003e\n"],["\u003cp\u003eEmploys a straightforward \u003ccode\u003eGET\u003c/code\u003e request structure, expecting an empty request body.\u003c/p\u003e\n"],["\u003cp\u003eDelivers a \u003ccode\u003eSite\u003c/code\u003e object as the response, containing comprehensive site details, if successful.\u003c/p\u003e\n"],["\u003cp\u003eUtilizes path parameters to specify the account and site for information retrieval.\u003c/p\u003e\n"]]],["The core content describes how to retrieve information about a specific site using a `GET` request to the provided URL (`https://adsense.googleapis.com/v2/{name=accounts/*/sites/*}`). The `name` parameter in the URL is mandatory and specifies the site's identifier. The request body must be empty. A successful response will contain site information in the `Site` format. Accessing this information requires either the `https://www.googleapis.com/auth/adsense` or `https://www.googleapis.com/auth/adsense.readonly` OAuth scopes.\n"],null,["# Method: 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 information about the selected site.\n\n### HTTP request\n\n`GET https://adsense.googleapis.com/v2/{name=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. Name of the site. Format: 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/management/reference/rest/v2/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`"]]