AI-generated Key Takeaways
-
A Site resource represents a website or domain within your AdSense account and provides information like its name, domain, and current state.
-
Sites can be in various states, such as requiring review, getting ready, ready to show ads, or needing attention due to issues.
-
You can get information about a specific site or list all sites associated with your AdSense account using the provided methods.
-
A site's JSON representation includes fields for name, reporting dimension ID, domain, state, and whether auto ads are enabled.
-
Site state is crucial for ad serving, with states like "READY" indicating ad readiness and "NEEDS_ATTENTION" signifying issues requiring publisher action.
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.
Enums | |
---|---|
STATE_UNSPECIFIED |
State unspecified. |
REQUIRES_REVIEW |
Either:
|
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. |
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. |
Methods |
|
---|---|
|
Gets information about the selected site. |
|
Lists all the sites available in an account. |