AI-generated Key Takeaways
-
Retrieves a specific site's information within a given sub-account using a GET request.
-
Requires providing the site's name in the URL path using a specific format.
-
An empty request body is necessary and a successful response returns a Site object.
-
Authorization necessitates using either
adsense
oradsense.readonly
OAuth scopes.
Gets a site from a specified sub-account.
HTTP request
GET https://adsenseplatform.googleapis.com/v1/{name=platforms/*/accounts/*/sites/*}
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
name |
Required. The name of the site to retrieve. Format: platforms/{platform}/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