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.
For AdUnit.adUnitCode, only alpha-numeric characters,
underscores, hyphens, periods, asterisks, double quotes, back slashes,
forward slashes, exclamations, left angle brackets, colons and
parentheses are allowed.
For AdUnit.adUnitCode, only letters, numbers,
underscores, hyphens, periods, asterisks, double quotes, back slashes,
forward slashes, exclamations, left angle brackets, colons and
parentheses are allowed.
INVALID_CHARACTERS_FOR_LEGACY_AD_EXCHANGE_TAG
For AdUnit.adUnitCode representing slot codes, only alphanumeric characters,
underscores, hyphens, periods and colons are allowed.
LEADING_FORWARD_SLASH
For AdUnit.adUnitCode, forward slashes are not allowed as
the first character.
RESERVED_CODE
Specific codes matching ca-*pub-*-tag are reserved for "Web Property IUs"
generated as part of the SlotCode migration.
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."],[[["This page documents the `AdUnitCodeError` object in the Google Ad Manager API."],["`AdUnitCodeError` is a type of `ApiError` that specifically relates to issues with the `adUnitCode` field of an `AdUnit`."],["The `reason` field provides further details about the specific error, including issues with invalid characters, reserved codes, and formatting."],["The `AdUnitCodeError` object inherits properties from the `ApiError` object, such as `fieldPath`, `fieldPathElements`, `trigger`, and `errorString`, to provide context and debugging information."],["Developers can use this information to understand and resolve errors related to ad unit codes when interacting with the Ad Manager API."]]],["The content details errors within the `InventoryService`, `ForecastService`, and `PublisherQueryLanguageService`. These include a hierarchy of errors, extending from `ApiError`, with specific error types like `AdUnitCodeError`. `AdUnitCodeError` lists reasons for invalid ad unit codes, which may be due to invalid characters, a leading forward slash, or reserved codes. The allowed characters are detailed for various `AdUnit.adUnitCode` contexts. It also include a field path to show where the error occurred.\n"]]