AI-generated Key Takeaways
-
AdUnitHierarchyError.Reason is an enumeration within the InventoryService used with the PublisherQueryLanguageService.
-
INVALID_DEPTH
andINVALID_PARENT
are two specific reasons listed for AdUnit hierarchy errors. -
INVALID_DEPTH
indicates an AdUnit is deeper than the maximum allowed depth in the hierarchy, which differs for Ad Manager and Ad Manager 360 accounts. -
INVALID_PARENT
signifies an invalid parentId for an AdUnit, with restrictions varying for Ad Manager and Ad Manager 360 accounts. -
UNKNOWN
is the value returned if the actual error reason is not available in the requested API version.
- Namespace
-
https://www.google.com/apis/ads/publisher/v202508
Enumeration | Description |
---|---|
INVALID_DEPTH
|
The depth of the AdUnit in the inventory hierarchy is greater than is allowed. The maximum allowed depth is two below the effective root ad unit for Ad Manager 360 accounts and is one level below the effective root ad unit for Ad Manager accounts. |
INVALID_PARENT
|
The only valid AdUnit.parentId for an Ad Manager account is the Network.effectiveRootAdUnitId, Ad Manager 360 accounts can specify an ad unit hierarchy with more than two levels. |
UNKNOWN
|
The value returned if the actual value is not exposed by the requested API version. |