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

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.
Create a Mobile Website
View Site in Mobile | Classic
Share by: