REST Resource: accounts.sites

Resource: Site

Representation of a Site.

JSON representation
{
  "name": string,
  "reportingDimensionId": string,
  "domain": string,
  "state": enum (State),
  "autoAdsEnabled": boolean
}
Fields
name

string

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 The site hasn't been checked yet.
GETTING_READY Running some checks on the site. This usually takes a few days, but in some cases can take up to 2 weeks.
READY The site is ready to show ads.
NEEDS_ATTENTION Publisher needs to fix some issues before the site is ready to show ads.

Methods

get

Gets information about the selected site.

list

Lists all the sites available in an account.