enum SiteError.Reason (v202502)

  • SiteError.Reason is an enumeration that defines the reasons for target errors related to sites in the Google Ad Manager API.

  • Reasons include issues such as invalid network codes for MCM child networks, inability to archive a site with subsites, invalid URLs, multiple updates for the same site in a batch, and submitting too many sites or too many review requests for a site.

  • Sites can only be submitted for review if they have an approval status of DRAFT, DISAPPROVED, or REQUIRES_REVIEW.

  • The UNKNOWN value is returned when the actual error reason is not exposed in the requested API version.

The reasons for the target error.


Namespace
https://www.google.com/apis/ads/publisher/v202502
Enumeration Description
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.