enum AdRuleError.Reason (v202411)

  • AdRuleError explains the reasons behind errors encountered when using AdRuleService.

  • Possible reasons for errors include invalid characters in names, break templates missing a flexible ad spot, or an unknown issue.

  • The meaning and context of these errors are further defined within the AdRuleError.Reason enumeration.

  • AdRuleError.Reason provides specific error codes such as NAME_CONTAINS_INVALID_CHARACTERS, BREAK_TEMPLATE_MUST_HAVE_EXACTLY_ONE_FLEXIBLE_AD_SPOT, and UNKNOWN.

Describes reason for AdRuleErrors.


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.