AI-generated Key Takeaways
-
The InventoryTargetingError lists errors caused by associating line items with targeting expressions across various services.
-
It includes inherited fields like
fieldPath
,fieldPathElements
,trigger
, anderrorString
fromApiError
. -
The
InventoryTargetingError
specifically has areason
field indicating the specific cause of the inventory targeting error, with various possible enumeration values. -
Possible reasons for the error include requirements for targeting at least one placement or inventory unit, issues with simultaneously targeting and excluding the same inventory, and constraints related to targeting or excluding child inventory units when ancestors are also targeted or excluded.
-
Additional reasons cover issues with explicitly targeted inventory units, landing page-only ad units, and targeting YouTube audience segments with incorrect inventory.
Lists all inventory errors caused by associating a line item with a targeting expression.
- Namespace
-
https://www.google.com/apis/ads/publisher/v202508
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
|