AI-generated Key Takeaways
-
AdUnitHierarchyError occurs when creating an AdUnit with an invalid hierarchy in the Google Ad Manager API.
-
This error arises from issues such as exceeding the maximum allowed depth in the inventory hierarchy or specifying an invalid parent AdUnit.
-
It is part of the InventoryService and inherits from ApiError, providing details like field path, trigger, and error string.
-
AdUnitHierarchyError includes a
reason
field indicating the specific cause of the error, likeINVALID_DEPTH
orINVALID_PARENT
. -
Developers should refer to the AdUnitHierarchyError.Reason enumeration for the possible reasons and ensure their AdUnit hierarchy adheres to the defined rules.
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
|