AI-generated Key Takeaways
-
AdRuleService in Google Ad Manager API v202411 includes various error types related to ad rule management.
-
Errors can stem from issues such as invalid ad rule dates, frequency caps, priorities, slot configurations, or targeting settings.
-
The base ApiError class provides details like the field path, triggering data, and an error string for debugging.
-
Specific AdRuleError details, such as invalid characters in the name or incorrect flexible ad spot configuration in break templates, are also available.
Errors ad rule break template objects.
- Namespace
-
https://www.google.com/apis/ads/publisher/v202411
Field
ApiError
(inherited) fieldPath
xsd:
string
The OGNL field path to identify cause of error.
fieldPathElements
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.
AdRuleError
reason
Enumerations
-
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.

