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

accounts.list all accounts available to this AdSense account.

HTTP request

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

The URL uses gRPC Transcoding syntax.

Query parameters

Parameters
maxResults

integer

The maximum number of accounts to include in the response, used for paging.

pageToken

string

A continuation token, used to page through accounts. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.

Request body

The request body must be empty.

Response body

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

JSON representation
{
  "kind": string,
  "etag": string,
  "items": [
    {
      object (Account)
    }
  ],
  "nextPageToken": string
}
Fields
kind

string

Kind of list this is, in this case adsense#accounts.

etag

string

ETag of this response for caching purposes.

items[]

object (Account)

The accounts returned in this list response.

nextPageToken

string

Continuation token used to page through accounts. To retrieve the next page of results, set the next request's "pageToken" value to this.

Authorization Scopes

Requires one of the following OAuth scopes:

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