AI-generated Key Takeaways
-
The AdRuleService is a service for managing ad rules.
-
Errors within the AdRuleService can break template objects.
-
The
ApiErrorobject contains fields to identify the cause of an error, including field path, trigger, and error string. -
The
AdRuleErrorobject includes a reason field with enumerations for specific ad rule errors.
Errors ad rule break template objects.
- Namespace
-
https://www.google.com/apis/ads/publisher/v202505
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.

