REST Resource: accounts.sites

  • 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 (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 (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 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

get

Gets information about the selected site.

list

Lists all the sites available in an account.