Method: accounts.get

  • Retrieves information about a specified AdSense account using a GET request.

  • Requires providing the account name as a path parameter in the request URL.

  • Returns an Account object containing the account information if the request is successful.

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

Gets information about the selected AdSense account.

HTTP request

GET https://adsense.googleapis.com/v2/{name=accounts/*}

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
name

string

Required. Account to get information about. Format: accounts/{account}

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