type SiteError (v202411)
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/v202411
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.SiteError\u003c/code\u003e object represents errors associated with a \u003ccode\u003eSite\u003c/code\u003e in Google Ad Manager.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eSiteError\u003c/code\u003e inherits from \u003ccode\u003eApiError\u003c/code\u003e and includes fields like \u003ccode\u003efieldPath\u003c/code\u003e, \u003ccode\u003etrigger\u003c/code\u003e, and \u003ccode\u003eerrorString\u003c/code\u003e for debugging.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003ereason\u003c/code\u003e field provides specific details about the \u003ccode\u003eSiteError\u003c/code\u003e, with possible values outlined in the \u003ccode\u003eSiteError.Reason\u003c/code\u003e enumeration.\u003c/p\u003e\n"],["\u003cp\u003eThese reasons include issues like invalid child network codes, archiving sites with subsites, and invalid URLs.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eSiteError\u003c/code\u003e helps developers identify and troubleshoot issues related to \u003ccode\u003eSite\u003c/code\u003e objects in their Ad Manager integrations.\u003c/p\u003e\n"]]],["The core content outlines the `CompanyService` and its associated error types, particularly focusing on `SiteError`. This service inherits from `ApiError`, detailing various error scenarios like `AuthenticationError`, `InternalApiError`, and `QuotaError`. `SiteError` specifies issues related to site management, including `INVALID_CHILD_NETWORK_CODE`, `CANNOT_ARCHIVE_SITE_WITH_SUBSITES`, and `INVALID_URL_FOR_SITE`. Actions involve error identification and management within the `CompanyService` context, especially concerning site operations and constraints. Each field such as `fieldPath` and `trigger` can be used for error handling.\n"],null,[]]