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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-11-19 UTC."],[[["`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."]]],["The core content details the `AdUnitHierarchyError.Reason` enumeration within the `InventoryService` of the Google Ad Manager API (v202411). It specifies three possible errors: `INVALID_DEPTH` indicates that an ad unit's depth in the hierarchy exceeds the allowed limit (two levels for Ad Manager 360, one for others). `INVALID_PARENT` denotes that an ad unit's parent is invalid, with the `effectiveRootAdUnitId` being the only valid parent for Ad Manager accounts. `UNKNOWN` represents an error not exposed by the API version.\n"]]