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 2025-08-06 UTC."],[],["The core content details the `AdUnitCodeError.Reason` enumeration within the `ForecastService`. It specifies constraints for `AdUnit.adUnitCode`, outlining acceptable characters and restrictions. Allowed characters include alphanumeric characters, underscores, hyphens, periods, asterisks, double quotes, backslashes, forward slashes, exclamations, left angle brackets, colons, and parentheses under varying conditions. Forward slashes are prohibited as the first character, and certain codes matching \"ca-\\*pub-\\*-tag\" are reserved. The `UNKNOWN` value indicates values not available in the API version.\n"],null,["# enum AdUnitCodeError.Reason (v202502)\n\n**Service** \n**ForecastService** [InventoryService](/ad-manager/api/reference/v202502/InventoryService.AdUnitCodeError.Reason) [PublisherQueryLanguageService](/ad-manager/api/reference/v202502/PublisherQueryLanguageService.AdUnitCodeError.Reason) **Dependencies** \n[AdUnitCodeError](/ad-manager/api/reference/v202502/ForecastService.AdUnitCodeError) \n▼\n**AdUnitCodeError.Reason**\n\n*** ** * ** ***\n\nNamespace\n:\n `https://www.google.com/apis/ads/publisher/v202502`\n\n| Enumeration | Description |\n|------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `INVALID_CHARACTERS` | For [AdUnit.adUnitCode](/ad-manager/api/reference/v202502/InventoryService.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. |\n| `INVALID_CHARACTERS_WHEN_UTF_CHARACTERS_ARE_ALLOWED` | For [AdUnit.adUnitCode](/ad-manager/api/reference/v202502/InventoryService.AdUnit#adUnitCode), only letters, numbers, underscores, hyphens, periods, asterisks, double quotes, back slashes, forward slashes, exclamations, left angle brackets, colons and parentheses are allowed. |\n| `INVALID_CHARACTERS_FOR_LEGACY_AD_EXCHANGE_TAG` | For [AdUnit.adUnitCode](/ad-manager/api/reference/v202502/InventoryService.AdUnit#adUnitCode) representing slot codes, only alphanumeric characters, underscores, hyphens, periods and colons are allowed. |\n| `LEADING_FORWARD_SLASH` | For [AdUnit.adUnitCode](/ad-manager/api/reference/v202502/InventoryService.AdUnit#adUnitCode), forward slashes are not allowed as the first character. |\n| `RESERVED_CODE` | Specific codes matching ca-\\*pub-\\*-tag are reserved for \"Web Property IUs\" generated as part of the SlotCode migration. |\n| `UNKNOWN` | The value returned if the actual value is not exposed by the requested API version. |"]]