# REST Resource: accounts.adclients

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

## Resource: AdClient

Representation of an ad client. An ad client represents a user's subscription with a specific AdSense product.

| JSON representation |
|---|
| ``` { "name": string, "reportingDimensionId": string, "productCode": string, "state": enum (`https://developers.google.com/adsense/management/reference/rest/v2/accounts.adclients#State`) } ``` |

| Fields ||
|---|---|
| `name` | `string` Output only. Resource name of the ad client. Format: accounts/{account}/adclients/{adclient} |
| `reportingDimensionId` | `string` Output only. Unique ID of the ad client as used in the `AD_CLIENT_ID` reporting dimension. Present only if the ad client supports reporting. |
| `productCode` | `string` Output only. Reporting product code of the ad client. For example, "AFC" for AdSense for Content. Corresponds to the `PRODUCT_CODE` dimension, and present only if the ad client supports reporting. |
| `state` | ``enum (`https://developers.google.com/adsense/management/reference/rest/v2/accounts.adclients#State`)`` Output only. State of the ad client. |

## State

Possible states of the ad client.

| Enums ||
|---|---|
| `STATE_UNSPECIFIED` | State unspecified. |
| `READY` | The ad client is ready to show ads. |
| `GETTING_READY` | Running some checks on the ad client before it is ready to serve ads. |
| `REQUIRES_REVIEW` | The ad client hasn't been checked yet. There are tasks pending before AdSense will start the review. |

| ## Methods ||
|---|---|
| ### `https://developers.google.com/adsense/management/reference/rest/v2/accounts.adclients/get` | Gets the ad client from the given resource name. |
| ### `https://developers.google.com/adsense/management/reference/rest/v2/accounts.adclients/getAdcode` | Gets the AdSense code for a given ad client. |
| ### `https://developers.google.com/adsense/management/reference/rest/v2/accounts.adclients/list` | Lists all the ad clients available in an account. |