AI-generated Key Takeaways
-
PlacementError is a class used for defining validation errors that can occur when working with placements in Google Ad Manager.
-
This class inherits from ApiError, providing access to general error information like field path, trigger, and error string.
-
PlacementError includes a specific "reason" field to indicate the cause of the validation error, like using shared inventory with local inventory in the same placement.
-
Possible reasons for PlacementError are outlined in the PlacementError.Reason enumeration with detailed explanations.
-
This information is crucial for developers to understand and handle potential errors during placement management through the Ad Manager API.
Class defining all validation errors for a placement.
- 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. |
PlacementError
|
|
|
Enumerations
|