Method: platforms.accounts.lookup

  • This documentation details the process for looking up information about a sub-account using the lookup method.

  • The request is made using an HTTP GET request with specific path and optional query parameters.

  • An empty request body is required, and the response provides the sub-account's name if found, otherwise returning a 404 error.

  • Authorization is necessary using specific OAuth scopes for either read or read-write access.

Looks up information about a sub-account for a specified creationRequestId. If no account exists for the given creationRequestId, returns 404.

HTTP request

GET https://adsenseplatform.googleapis.com/v1/{parent=platforms/*}/accounts:lookup

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
parent

string

Required. Platform who parents the account. Format: platforms/{platform}

Query parameters

Parameters
creationRequestId

string

Optional. The creationRequestId provided when calling createAccount.

Request body

The request body must be empty.

Response body

Response definition for the lookup account rpc.

If successful, the response body contains data with the following structure:

JSON representation
{
  "name": string
}
Fields
name

string

The name of the Account Format: platforms/{platform}/accounts/{account_id}

Authorization scopes

Requires one of the following OAuth scopes:

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