Share your feedback and help shape the Google Mobile Ads SDK roadmap. Take the Google Mobile Ads SDK Annual Survey for 2023 before it closes on May 5th, 2023.

Method: accounts.list

Stay organized with collections Save and categorize content based on your preferences.

Lists the AdMob publisher account that was most recently signed in to from the AdMob UI. For more information, see https://support.google.com/admob/answer/10243672.

HTTP request

GET https://admob.googleapis.com/v1/accounts

The URL uses gRPC Transcoding syntax.

Query parameters

Parameters
pageSize

integer

Maximum number of accounts to return.

pageToken

string

The value returned by the last ListPublisherAccountsResponse; indicates that this is a continuation of a prior accounts.list call, and that the system should return the next page of data.

Request body

The request body must be empty.

Response body

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

Response for the publisher account list request.

JSON representation
{
  "account": [
    {
      object (PublisherAccount)
    }
  ],
  "nextPageToken": string
}
Fields
account[]

object (PublisherAccount)

Publisher that the client credentials can access.

nextPageToken

string

If not empty, indicates that there might be more accounts for the request; you must pass this value in a new ListPublisherAccountsRequest.

Authorization Scopes

Requires one of the following OAuth scopes:

  • https://www.googleapis.com/auth/admob.report
  • https://www.googleapis.com/auth/admob.readonly

For more information, see the OAuth 2.0 Overview.