REST Resource: platforms.accounts

Resource: Account

Representation of an Account.

JSON representation
{
  "name": string,
  "displayName": string,
  "state": enum (State),
  "timeZone": {
    object (TimeZone)
  },
  "createTime": string,
  "regionCode": string
}
Fields
name

string

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

displayName

string

Display name of this account.

state

enum (State)

Output only. Approval state of the account.

timeZone

object (TimeZone)

Required. The IANA TZ timezone code of this account. For more information, see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones. This field is used for reporting. It is recommended to set it to the same value for all child accounts.

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

regionCode

string

Required. Input only. CLDR region code of the country/region of the address. Set this to country code of the child account if known, otherwise to your own country code.

State

Approval state of the account.

Enums
STATE_UNSPECIFIED Unspecified.
UNCHECKED Unchecked.
APPROVED The account is ready to serve ads.
DISAPPROVED The account has been blocked from serving ads.

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

close

Closes a sub-account.

create

Creates a sub-account.

get

Gets information about the selected sub-account.