A parsed copy of the field path. For example, the field path "operations[1].operand"
corresponds to this list: {FieldPathElement(field = "operations", index = 1),
FieldPathElement(field = "operand", index = null)}.
trigger
xsd:string
The data that caused the error.
errorString
xsd:string
A simple string representation of the error and reason.
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 2025-08-06 UTC."],[[["\u003cp\u003eAdUnitHierarchyError occurs when creating an AdUnit with an invalid hierarchy in the Google Ad Manager API.\u003c/p\u003e\n"],["\u003cp\u003eThis error can be caused by exceeding the maximum allowed depth in the inventory hierarchy, which is two levels below the effective root for Ad Manager 360 accounts and one level below for Ad Manager accounts.\u003c/p\u003e\n"],["\u003cp\u003eIt can also be triggered by specifying an invalid parent for the AdUnit.\u003c/p\u003e\n"],["\u003cp\u003eThe error details include a reason code (INVALID_DEPTH, INVALID_PARENT, or UNKNOWN) and the standard ApiError fields for troubleshooting.\u003c/p\u003e\n"]]],["The `InventoryService` uses `ApiError` as a base for errors, including `AdUnitHierarchyError`. `AdUnitHierarchyError` is triggered by creating an `AdUnit` with an invalid hierarchy. The `AdUnitHierarchyError` specifies the `reason` for the error, such as `INVALID_DEPTH` (exceeding the allowed hierarchy depth) or `INVALID_PARENT` (incorrect parent specified). `ApiError` contains `fieldPath`, `fieldPathElements`, `trigger`, and `errorString`. The maximum allowed depth is two below root ad unit for 360 accounts and one for regular accounts.\n"],null,[]]