AI-generated Key Takeaways
- 
          The content provides details about the InventoryTargetingErrorin the Google Ad Manager API, specifically for version v202508.
- 
          This error lists all inventory-related errors that occur when associating a line item with a targeting expression. 
- 
          The error inherits from ApiErrorand includes fields such asfieldPath,fieldPathElements,trigger, anderrorString.
- 
          The InventoryTargetingErrorincludes areasonfield, which is an enum detailing specific causes such as targeting/excluding the same inventory, issues with targeting or excluding ancestor/descendant inventory units, and limitations with specific inventory types like 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/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 
 |