Method: platforms.accounts.get

  • Retrieves detailed data on a specified AdSense sub-account.

  • Utilizes a GET request sent to a structured URL including platform and account identifiers.

  • Requires an empty request body and returns an Account object with the sub-account's information upon success.

  • Needs authorization with either adsense or adsense.readonly OAuth scopes for access.

Gets information about the selected sub-account.

HTTP request

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

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
name

string

Required. Account to get information about. Format: platforms/{platform}/accounts/{account_id}

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