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-08-20 UTC."],[[["AdUnitHierarchyError outlines potential errors related to the hierarchical structure of ad units within Google Ad Manager."],["Errors can arise from excessive depth in the ad unit hierarchy, exceeding the limits set for Ad Manager 360 and Ad Manager accounts."],["Another error type is specifying an invalid parent for an ad unit, with restrictions on parentId for Ad Manager accounts and more flexibility for Ad Manager 360."],["The `UNKNOWN` reason is a generic indicator for errors not explicitly defined in the current API version."]]],["The content defines the `AdUnitHierarchyError.Reason` enumeration within the `InventoryService` and `PublisherQueryLanguageService`. It outlines three error reasons: `INVALID_DEPTH`, indicating an ad unit's hierarchy depth exceeding the allowed limit (two levels for Ad Manager 360, one for Ad Manager); `INVALID_PARENT`, meaning an incorrect parent ID is used; `UNKNOWN`, used for unexposed API values. These rules govern the creation and structure of ad units in the inventory hierarchy.\n"]]