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.get

accounts.get information about the selected AdSense account.

HTTP request

GET https://www.googleapis.com/adsense/v1.4/accounts/{accountId}

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
accountId

string

Account to get information about.

Query parameters

Parameters
tree

boolean

Whether the tree of sub accounts should be returned.

Request body

The request body must be empty.

Response body

If successful, the response body contains an instance of Account.

Authorization Scopes

Requires one of the following OAuth scopes:

  • https://www.googleapis.com/auth/adsense
  • https://www.googleapis.com/auth/adsense.readonly