type AdRuleTargetingError (v202411)

  • AdRuleTargetingError lists all the errors associated with ad rule targeting.

  • It is under the namespace https://www.google.com/apis/ads/publisher/v202411.

  • This error has fields such as fieldPath, fieldPathElements, trigger, errorString, and reason.

  • AdRuleTargetingError.Reason is an enumeration that provides context to the error.

  • Some reasons for AdRuleTargetingError include: video position targeting not allowed, exact custom value targeting required due to COPPA, and an unknown catch-all error.

Lists all errors associated with ad rule targeting.


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.

AdRuleTargetingError

reason

AdRuleTargetingError.Reason


Enumerations
VIDEO_POSITION_TARGETING_NOT_ALLOWED
Cannot target video positions.
EXACT_CUSTOM_VALUE_TARGETING_REQUIRED
As part of COPPA requirements, custom targeting for session ad rules requires exact custom value matching.
UNKNOWN
The value returned if the actual value is not exposed by the requested API version.