AI-generated Key Takeaways
-
AdUnitHierarchyError arises when creating an AdUnit with an invalid placement in the ad unit hierarchy.
-
Issues can include exceeding the maximum allowed depth in the hierarchy or specifying an invalid parent ad unit.
-
For Ad Manager 360, the maximum depth is two levels below the effective root ad unit, while for Ad Manager it's one level below.
-
AdUnitHierarchyError inherits from ApiError, providing details like field path, trigger, and error string.
-
Reasons for the error are indicated by the
reason
field, with values like INVALID_DEPTH and INVALID_PARENT.
Caused by creating an AdUnit object with an invalid hierarchy.
- 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. |
AdUnitHierarchyError
|
|
|
Enumerations
|