REST Resource: accounts

  • An Account resource represents an AdSense account with fields including name, display name, premium status, time zone, creation time, pending tasks, and state.

  • The TimeZone object, used within an Account, represents a time zone from the IANA Time Zone Database.

  • The State enum defines possible states for an AdSense account, such as READY, NEEDS_ATTENTION, and CLOSED.

  • Available methods for Account resources include getting information about an account, retrieving the ad blocking recovery tag, listing all accessible accounts, and listing child accounts.

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. For example "America/New_York".

version

string

Optional. IANA Time Zone Database version number. For example "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.
Design a Mobile Site
View Site in Mobile | Classic
Share by: