v1.4 of the AdSense Management API is now deprecated. This version will stop returning data on October 12, 2021. Please migrate to v2 as soon as possible.

Method: accounts.sites.get

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