enum AdRuleError.Reason (v202411)
Stay organized with collections
Save and categorize content based on your preferences.
Describes reason for AdRuleError
s.
- Namespace
-
https://www.google.com/apis/ads/publisher/v202411
Enumeration |
Description |
NAME_CONTAINS_INVALID_CHARACTERS
|
The name contains unsupported or reserved characters.
|
BREAK_TEMPLATE_MUST_HAVE_EXACTLY_ONE_FLEXIBLE_AD_SPOT
|
The break template must have exactly one flexible ad spot.
|
UNKNOWN
|
The value returned if the actual value is not exposed by the requested API version.
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-06 UTC.
[null,null,["Last updated 2025-08-06 UTC."],[[["\u003cp\u003eAdRuleError explains the reasons behind errors encountered when using AdRuleService.\u003c/p\u003e\n"],["\u003cp\u003ePossible reasons for errors include invalid characters in names, break templates missing a flexible ad spot, or an unknown issue.\u003c/p\u003e\n"],["\u003cp\u003eThe meaning and context of these errors are further defined within the AdRuleError.Reason enumeration.\u003c/p\u003e\n"],["\u003cp\u003eAdRuleError.Reason provides specific error codes such as \u003ccode\u003eNAME_CONTAINS_INVALID_CHARACTERS\u003c/code\u003e, \u003ccode\u003eBREAK_TEMPLATE_MUST_HAVE_EXACTLY_ONE_FLEXIBLE_AD_SPOT\u003c/code\u003e, and \u003ccode\u003eUNKNOWN\u003c/code\u003e.\u003c/p\u003e\n"]]],["The content details `AdRuleError` reasons within the `AdRuleService`. Key information includes error descriptions like `NAME_CONTAINS_INVALID_CHARACTERS`, indicating unsupported characters in a name, and `BREAK_TEMPLATE_MUST_HAVE_EXACTLY_ONE_FLEXIBLE_AD_SPOT`, specifying a template's ad spot requirement. The `UNKNOWN` reason signifies that a value is not exposed by the API version. This enumeration is under the `https://www.google.com/apis/ads/publisher/v202411` namespace.\n"],null,["# enum AdRuleError.Reason (v202411)\n\n**Service** \n**AdRuleService** **Dependencies** \n[AdRuleError](/ad-manager/api/reference/v202411/AdRuleService.AdRuleError) \n▼\n**AdRuleError.Reason**\n\nDescribes reason for `AdRuleError`s.\n\n*** ** * ** ***\n\nNamespace\n:\n `https://www.google.com/apis/ads/publisher/v202411`\n\n| Enumeration | Description |\n|---------------------------------------------------------|-------------------------------------------------------------------------------------|\n| `NAME_CONTAINS_INVALID_CHARACTERS` | The name contains unsupported or reserved characters. |\n| `BREAK_TEMPLATE_MUST_HAVE_EXACTLY_ONE_FLEXIBLE_AD_SPOT` | The break template must have exactly one flexible ad spot. |\n| `UNKNOWN` | The value returned if the actual value is not exposed by the requested API version. |"]]