# REST Resource: accounts.sites

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

## Resource: Site

Representation of a Site.

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

| Fields ||
|---|---|
| `name` | `string` Output only. Resource name of a site. Format: accounts/{account}/sites/{site} |
| `reportingDimensionId` | `string` Output only. Unique ID of the site as used in the `OWNED_SITE_ID` reporting dimension. |
| `domain` | `string` Domain (or subdomain) of the site, e.g. "example.com" or "www.example.com". This is used in the `OWNED_SITE_DOMAIN_NAME` reporting dimension. |
| `state` | ``enum (`https://developers.google.com/adsense/management/reference/rest/v2/accounts.sites#State`)`` Output only. State of a site. |
| `autoAdsEnabled` | `boolean` Whether auto ads is turned on for the site. |

## State

State of the site. See [Check the status of AdSense sites](https://support.google.com/adsense/answer/9128461) for more information.

| Enums ||
|---|---|
| `STATE_UNSPECIFIED` | State unspecified. |
| `REQUIRES_REVIEW` | Either: - The site hasn't been checked yet. - The site is inactive and needs another review before it can show ads again. Learn how to [request a review for an inactive site](https://support.google.com/adsense/answer/9393996). |
| `GETTING_READY` | Google is running some checks on the site. This usually takes a few days, but in some cases it can take two to four weeks. |
| `READY` | The site is ready to show ads. Learn how to [set up ads on the site](https://support.google.com/adsense/answer/7037624). |
| `NEEDS_ATTENTION` | Publisher needs to fix some issues before the site is ready to show ads. Learn what to do [if a new site isn't ready](https://support.google.com/adsense/answer/9061852). |

| ## Methods ||
|---|---|
| ### `https://developers.google.com/adsense/management/reference/rest/v2/accounts.sites/get` | Gets information about the selected site. |
| ### `https://developers.google.com/adsense/management/reference/rest/v2/accounts.sites/list` | Lists all the sites available in an account. |