enum AdUnitHierarchyError.Reason (v202505)

  • AdUnitHierarchyError.Reason is an enumeration within the InventoryService.

  • The INVALID_DEPTH error occurs when an AdUnit is too deep in the inventory hierarchy, with different depth limits for Ad Manager 360 and Ad Manager accounts.

  • The INVALID_PARENT error indicates an invalid parent ID for an AdUnit, with specific rules for Ad Manager accounts versus Ad Manager 360 accounts.

  • The UNKNOWN reason is returned for values not exposed in the requested API version.


Namespace
https://www.google.com/apis/ads/publisher/v202505
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.