REST Resource: networks.sites

Resource: Site

A Site represents a domain owned or represented by a network. For a parent network managing other networks as part of Multiple Customer Management "Manage Inventory" model, it could be the child's domain.

JSON representation
{
  "name": string,
  "disapprovalReasons": [
    {
      object (DisapprovalReason)
    }
  ],
  "url": string,
  "childNetworkCode": string,
  "approvalStatus": enum (SiteApprovalStatus),
  "approvalStatusUpdateTime": string
}
Fields
name

string

Identifier. The resource name of the Site. Format: networks/{networkCode}/sites/{site_id}

disapprovalReasons[]

object (DisapprovalReason)

Output only. Provides reasons for disapproving the Site. It is null when the Site is not disapproved.

url

string

Required. The URL of the Site.

childNetworkCode

string

Optional. The network code of the child if the Site is being managed for an MCM child network, or null if owned by this network.

approvalStatus

enum (SiteApprovalStatus)

Output only. Status of the review performed on the Site by Google.

approvalStatusUpdateTime

string (Timestamp format)

Output only. The latest Site approval status change time.

Uses RFC 3339, where generated output will always be Z-normalized and uses 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: "2014-10-02T15:01:23Z", "2014-10-02T15:01:23.045123456Z" or "2014-10-02T15:01:23+05:30".

SiteApprovalStatus

Represents the approval status of a site.

Enums
SITE_APPROVAL_STATUS_UNSPECIFIED Default value. This value is unused.
APPROVED The site has been approved to serve ads.
DISAPPROVED The site has been disapproved from serving ads.
DRAFT The default status with which a site is created.
REQUIRES_REVIEW The site has been deactivated and is not serving ads due to dormancy. It must be resubmitted for approval.
UNCHECKED Once the site is submitted for approval, its status changes from draft to unchecked. It will be reviwed with an estimated turn-around time of 24h. Such a site cannot serve ads.

DisapprovalReason

Represents the reason for which Google disapproved the Site.

JSON representation
{
  "type": enum (SiteDisapprovalReason),
  "details": string
}
Fields
type

enum (SiteDisapprovalReason)

Output only. The type of policy violation found for the Site.

details

string

Output only. Additional details for the disapproval of the Site.

SiteDisapprovalReason

The list of possible policy violation types for a Site.

Enums
SITE_DISAPPROVAL_REASON_UNSPECIFIED Default value. This value is unused.
CONTENT The site has content that violates policy.
OTHER Generic error type.
OWNERSHIP The parent must be an authorized seller of the child network's inventory.

Methods

batchCreate

API to batch create Site objects.

batchDeactivate

Deactivates a list of Site objects.

batchSubmitForApproval

Submits a list of Site objects for approval.

batchUpdate

API to batch update Site objects.

create

API to create a Site object.

get

API to retrieve a Site object.

list

API to retrieve a list of Site objects.

patch

API to update a Site object.