type SiteError (v202408)
Stay organized with collections
Save and categorize content based on your preferences.
Errors associated with the Site
.
- Namespace
-
https://www.google.com/apis/ads/publisher/v202408
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.
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-06 UTC.
[null,null,["Last updated 2025-08-06 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eCompanyService\u003c/code\u003e relates to \u003ccode\u003eSiteError\u003c/code\u003e which provides details about errors associated with Google Ad Manager Sites.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eSiteError\u003c/code\u003e objects contain a reason field, indicating the specific cause of the error, such as an invalid child network code or attempting to archive a site with subsites.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eSiteError\u003c/code\u003e inherits from the \u003ccode\u003eApiError\u003c/code\u003e object, providing additional context like field path and error strings.\u003c/p\u003e\n"],["\u003cp\u003eA \u003ccode\u003eSiteError\u003c/code\u003e might occur when attempting to update multiple sites simultaneously or submitting too many sites for review.\u003c/p\u003e\n"],["\u003cp\u003eThis service is part of the Google Ad Manager API and uses a specific namespace for interactions.\u003c/p\u003e\n"]]],["The document details `CompanyService` and its associated errors, including `SiteError`, which relates to issues with `Site` management. `SiteError` inherits from `ApiError`. Key error details include `fieldPath`, `fieldPathElements`, `trigger`, and `errorString`. Specific `SiteError` reasons are: invalid child network codes, attempting to archive sites with subsites, invalid site URLs, multiple updates for the same site, too many review requests, and improper approval statuses for review. Several other errors related to the company service are listed.\n"],null,[]]