type InventoryUnitError (v202411)
Stay organized with collections
Save and categorize content based on your preferences.
Lists the generic errors associated with AdUnit objects.
- 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.
|
InventoryUnitError
|
reason
|
InventoryUnitError.Reason
Enumerations
-
EXPLICIT_TARGETING_NOT_ALLOWED
-
AdUnit.explicitlyTargeted can be set to
true only in an
Ad Manager 360 account.
-
TARGET_PLATFORM_NOT_APPLICABLE
- The specified target platform is not applicable for the inventory unit.
-
ADSENSE_CANNOT_BE_ENABLED
- AdSense cannot be enabled on this inventory unit if it is disabled for the network.
-
ROOT_UNIT_CANNOT_BE_DEACTIVATED
- A root unit cannot be deactivated.
-
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\u003e\u003ccode\u003eInventoryUnitError\u003c/code\u003e objects detail errors encountered when interacting with ad units in Google Ad Manager.\u003c/p\u003e\n"],["\u003cp\u003eThese errors can arise from various issues like incorrect targeting settings, AdSense configurations, or ad unit status changes.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003ereason\u003c/code\u003e field provides specific information about the cause of the error, including disallowed targeting, platform incompatibility, AdSense limitations, and root unit restrictions.\u003c/p\u003e\n"],["\u003cp\u003eDetailed information about the error is given via inherited fields from \u003ccode\u003eApiError\u003c/code\u003e, such as \u003ccode\u003efieldPath\u003c/code\u003e, \u003ccode\u003etrigger\u003c/code\u003e, and \u003ccode\u003eerrorString\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThis error object is relevant to multiple Google Ad Manager services, including \u003ccode\u003eAdjustmentService\u003c/code\u003e, \u003ccode\u003eForecastService\u003c/code\u003e, \u003ccode\u003eInventoryService\u003c/code\u003e, and \u003ccode\u003ePublisherQueryLanguageService\u003c/code\u003e.\u003c/p\u003e\n"]]],["The core content outlines errors within the Ad Manager API's InventoryService, specifically concerning `AdUnit` objects. Key services include AdjustmentService, ForecastService, InventoryService, and PublisherQueryLanguageService. The document details `InventoryUnitError` and its various reasons, such as `EXPLICIT_TARGETING_NOT_ALLOWED`, `TARGET_PLATFORM_NOT_APPLICABLE`, and `ADSENSE_CANNOT_BE_ENABLED`. It provides details about error fields, including `fieldPath`, `trigger`, and `errorString`. Various error types associated with the InventoryService, like `ApiError`, are also listed.\n"],null,[]]