type SiteError (v202508)

  • SiteError is a service related to the Site in the CompanyService API.

  • SiteError inherits from ApiError, which includes fields like fieldPath, fieldPathElements, trigger, and errorString.

  • SiteError itself has a reason field which is an enumeration with various possible error causes related to sites.

  • Possible SiteError.Reason values include issues with network codes, archiving sites with subsites, invalid URLs, multiple updates, review request limits, and invalid approval statuses for review.

Errors associated with the Site.


Namespace
https://www.google.com/apis/ads/publisher/v202508

Field

ApiError (inherited)

fieldPath

xsd:string

The OGNL field path to identify cause of error.

fieldPathElements

FieldPathElement[]

A parsed copy of the field path. For example, the field path "operations[1].operand" corresponds to this list: {FieldPathElement(field = "operations", index = 1), FieldPathElement(field = "operand", index = null)}.

trigger

xsd:string

The data that caused the error.

errorString

xsd:string

A simple string representation of the error and reason.

SiteError

reason

SiteError.Reason


Enumerations
INVALID_CHILD_NETWORK_CODE
The network code must belong to an MCM child network.
CANNOT_ARCHIVE_SITE_WITH_SUBSITES
Archive all subsites before archiving the site.
INVALID_URL_FOR_SITE
The URL is invalid for a top-level site.
MULTIPLE_UPDATES_FOR_SAME_SITE
The batch of sites could not be updated because the same site was updated multiple times in the batch.
TOO_MANY_SITES_PER_REVIEW_REQUEST
Too many sites in the request to submit them for review.
TOO_MANY_REVIEW_REQUESTS_FOR_SITE
The site has been submitted for review too many times.
INVALID_APPROVAL_STATUS_FOR_REVIEW
Only sites with approval status ApprovalStatus.DRAFT, ApprovalStatus.DISAPPROVED and ApprovalStatus.REQUIRES_REVIEW can be submitted for review.
UNKNOWN
The value returned if the actual value is not exposed by the requested API version.