REST Resource: accounts

  • A PublisherAccount resource contains information relevant to using the AdMob API, such as the reporting time zone.

  • The JSON representation of a PublisherAccount includes fields for name, publisherId, reportingTimeZone, and currencyCode.

  • Key fields include name (resource name), publisherId (unique ID), reportingTimeZone (time zone for reports), and currencyCode (currency for earnings metrics).

  • Available methods include get to retrieve information about a specific account and list to list the most recently signed-in account.

Resource: PublisherAccount

A publisher account contains information relevant to the use of this API, such as the time zone used for the reports.

JSON representation
{
  "name": string,
  "publisherId": string,
  "reportingTimeZone": string,
  "currencyCode": string
}
Fields
name

string

Resource name of this account. Format is accounts/{publisherId}.

publisherId

string

The unique ID by which this publisher account can be identified in the API requests (for example, pub-1234567890).

reportingTimeZone

string

The time zone that is used in reports that are generated for this account. The value is a time-zone ID as specified by the CLDR project, for example, "America/Los_Angeles".

currencyCode

string

Currency code of the earning-related metrics, which is the 3-letter code defined in ISO 4217. The daily average rate is used for the currency conversion.

Methods

get

Gets information about the specified AdMob publisher account.

list

Lists the AdMob publisher account that was most recently signed in to from the AdMob UI.