REST Resource: accounts

  • The PublisherAccount resource provides essential information about an AdMob publisher account, including time zone and currency used for reporting.

  • The resource includes key fields like name, publisherId, reportingTimeZone, and currencyCode, each serving a specific purpose in account identification and data representation.

  • You can utilize the get and list methods to retrieve information about a specific publisher account or the most recently accessed one.

  • The JSON representation of a PublisherAccount is structured with specific keys for name, publisherId, reportingTimeZone, and currencyCode.

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.