AI-generated Key Takeaways
-
The
InventoryTargetingError
object lists all inventory errors that occur when associating a line item with a targeting expression. -
This error arises from issues like targeting and excluding the same inventory unit, targeting child units when ancestors are targeted/excluded, or targeting landing page-only units without descendants.
-
It inherits from
ApiError
and includes fields likefieldPath
,trigger
, anderrorString
for debugging. -
The
reason
field provides a specific enum value indicating the nature of the inventory targeting error, such asINVENTORY_CANNOT_BE_TARGETED_AND_EXCLUDED
orYOUTUBE_AUDIENCE_SEGMENTS_CAN_ONLY_BE_TARGETED_WITH_YOUTUBE_SHARED_INVENTORY
.
Lists all inventory errors caused by associating a line item with a targeting expression.
- Namespace
-
https://www.google.com/apis/ads/publisher/v202411
Field |
|
---|---|
ApiError (inherited)
|
|
|
The OGNL field path to identify cause of error. |
|
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)}. |
|
The data that caused the error. |
|
A simple string representation of the error and reason. |
InventoryTargetingError
|
|
|
The error reason represented by an enum. Enumerations
|