v1.4 of the AdSense Management API is no longer available. Please migrate to v2 as soon as possible. For a temporary extension, please follow these instructions.

REST Resource: accounts

Resource: Account

Representation of an account.

JSON representation
{
  "name": string,
  "displayName": string,
  "premium": boolean,
  "timeZone": {
    object (TimeZone)
  },
  "createTime": string,
  "pendingTasks": [
    string
  ]
}
Fields
name

string

Resource name of the account. Format: accounts/pub-[0-9]+

displayName

string

Output only. Display name of this account.

premium

boolean

Output only. Whether this account is premium.

timeZone

object (TimeZone)

The account time zone, as used by reporting. For more information, see changing the time zone of your reports.

createTime

string (Timestamp format)

Output only. Creation time of the account.

A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".

pendingTasks[]

string

Output only. Outstanding tasks that need to be completed as part of the sign-up process for a new account.

e.g. "billing-profile-creation", "phone-pin-verification".

TimeZone

Represents a time zone from the IANA Time Zone Database.

JSON representation
{
  "id": string,
  "version": string
}
Fields
id

string

IANA Time Zone Database time zone, e.g. "America/New_York".

version

string

Optional. IANA Time Zone Database version number, e.g. "2019a".

Methods

get

Gets information about the selected AdSense account.

list

Lists all accounts available to this user.

listChildAccounts

Lists all accounts directly managed by the given AdSense account.