Method: accounts.sites.get

  • Retrieves detailed information about a specific AdSense site using its unique identifier.

  • Requires authorization with either adsense or adsense.readonly scope.

  • Employs a straightforward GET request structure, expecting an empty request body.

  • Delivers a Site object as the response, containing comprehensive site details, if successful.

  • Utilizes path parameters to specify the account and site for information retrieval.

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