Page Summary
-
A Site represents a domain or subdomain and is used in reporting dimensions.
-
A Site has a state indicating its readiness to show ads, such as REQUIRES_REVIEW, GETTING_READY, READY, or NEEDS_ATTENTION.
-
You can check the status of AdSense sites and what actions might be needed based on their state.
-
You can retrieve information about a specific site or list all sites within an account using available methods.
Resource: Site
Representation of a Site.
| JSON representation |
|---|
{
"name"
:
string
,
"reportingDimensionId"
:
string
,
"domain"
:
string
,
"state"
:
enum (
|
| Fields | |
|---|---|
name
|
Output only. Resource name of a site. Format: accounts/{account}/sites/{site} |
reportingDimensionId
|
Output only. Unique ID of the site as used in the |
domain
|
Domain (or subdomain) of the site, e.g. "example.com" or "www.example.com". This is used in the |
state
|
Output only. State of a site. |
autoAdsEnabled
|
Whether auto ads is turned on for the site. |
State
State of the site. See Check the status of AdSense sites for more information.
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 .
GETTING_READY
READY
NEEDS_ATTENTION
Methods |
|
|---|---|
|
Gets information about the selected site. |
|
Lists all the sites available in an account. |

