Method: platforms.accounts.sites.get

  • This API call gets a site from a specified sub-account.

  • The request is made using a GET HTTP request to a URL with specific path parameters.

  • The request body must be empty, and a successful response body contains an instance of Site.

  • Authorization requires one of two specified OAuth scopes.

Gets a site from a specified sub-account.

HTTP request

GET https://adsenseplatform.googleapis.com/v1alpha/{name=platforms/*/accounts/*/sites/*}

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
name

string

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