enum AdUnitHierarchyError.Reason (v202411)

  • AdUnitHierarchyError.Reason outlines potential errors when setting up ad unit hierarchies in Google Ad Manager.

  • Errors can arise from excessive ad unit depth, exceeding two levels below the effective root for Ad Manager 360 and one level for Ad Manager accounts.

  • Another potential error is specifying an invalid parent ID, which should be the Network.effectiveRootAdUnitId for Ad Manager accounts, while Ad Manager 360 allows for more complex hierarchies.

  • The UNKNOWN reason is a fallback for errors not specifically defined in the current API version.


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