# REST Resource: accounts

- [Resource: Account](https://developers.google.com/adsense/management/reference/rest/v2/accounts#Account)
  - [JSON representation](https://developers.google.com/adsense/management/reference/rest/v2/accounts#Account.SCHEMA_REPRESENTATION)
- [TimeZone](https://developers.google.com/adsense/management/reference/rest/v2/accounts#TimeZone)
  - [JSON representation](https://developers.google.com/adsense/management/reference/rest/v2/accounts#TimeZone.SCHEMA_REPRESENTATION)
- [State](https://developers.google.com/adsense/management/reference/rest/v2/accounts#State)
- [Methods](https://developers.google.com/adsense/management/reference/rest/v2/accounts#METHODS_SUMMARY)

## Resource: Account

Representation of an account.

| JSON representation |
|---|
| ``` { "name": string, "displayName": string, "premium": boolean, "timeZone": { object (`https://developers.google.com/adsense/management/reference/rest/v2/accounts#TimeZone`) }, "createTime": string, "pendingTasks": [ string ], "state": enum (`https://developers.google.com/adsense/management/reference/rest/v2/accounts#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. Premium accounts have access to additional spam-related metrics. |
| `timeZone` | ``object (`https://developers.google.com/adsense/management/reference/rest/v2/accounts#TimeZone`)`` The account time zone, as used by reporting. For more information, see [changing the time zone of your reports](https://support.google.com/adsense/answer/9830725). |
| `createTime` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` format)`` Output only. Creation time of the account. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: `"2014-10-02T15:01:23Z"`, `"2014-10-02T15:01:23.045123456Z"` or `"2014-10-02T15:01:23+05:30"`. |
| `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 (`https://developers.google.com/adsense/management/reference/rest/v2/accounts#State`)`` Output only. State of the account. |

## TimeZone

Represents a time zone from the [IANA Time Zone Database](https://www.iana.org/time-zones).

| 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 ||
|---|---|
| ### `https://developers.google.com/adsense/management/reference/rest/v2/accounts/get` | Gets information about the selected AdSense account. |
| ### `https://developers.google.com/adsense/management/reference/rest/v2/accounts/getAdBlockingRecoveryTag` | Gets the ad blocking recovery tag of an account. |
| ### `https://developers.google.com/adsense/management/reference/rest/v2/accounts/list` | Lists all accounts available to this user. |
| ### `https://developers.google.com/adsense/management/reference/rest/v2/accounts/listChildAccounts` | Lists all accounts directly managed by the given AdSense account. |