REST Resource: accounts

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

Resource: Account

Representation of an account.

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

string

Output only. 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".

state

enum (State)

Output only. State of the account.

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

State

Possible states of the account.

Enums
STATE_UNSPECIFIED State unspecified.
READY The account is open and ready to serve ads.
NEEDS_ATTENTION There are some issues with this account. Publishers should visit AdSense in order to fix the account.
CLOSED The account is closed and can't serve ads.

Methods

get

Gets information about the selected AdSense account.

getAdBlockingRecoveryTag

Gets the ad blocking recovery tag of an account.

list

Lists all accounts available to this user.

listChildAccounts

Lists all accounts directly managed by the given AdSense account.