type AdRuleError (v202411)

  • AdRuleService manages ad rule break templates and their associated errors.

  • AdRuleError objects provide details about specific errors encountered during ad rule operations.

  • Common error reasons include invalid characters in names and incorrect break template configuration.

  • The API provides detailed error information including field path, trigger, and error string.

  • AdRuleService is part of the Google Ad Manager API and uses a specific namespace for interactions.

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

FieldPathElement[]

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

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.