type GeoTargetingError (v202411)

  • The ProposalLineItemService manages proposal line items and their associated errors within Google Ad Manager.

  • GeoTargetingError specifically highlights issues encountered when setting geographical targeting for proposal line items.

  • This error can arise from conflicts between targeted and excluded locations, restrictions on excluding postal codes, or attempts to target untargetable locations.

  • The error messages provide specific reasons for the targeting failures, like TARGETED_LOCATIONS_NOT_EXCLUDABLE or UNTARGETABLE_LOCATION, aiding in troubleshooting.

  • Developers can use the provided error reasons and field paths to identify and rectify the geographical targeting issues in their proposal line items.

Lists all errors associated with geographical targeting for a LineItem.


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.

GeoTargetingError

reason

GeoTargetingError.Reason

The error reason represented by an enum.


Enumerations
TARGETED_LOCATIONS_NOT_EXCLUDABLE
A location that is targeted cannot also be excluded.
EXCLUDED_LOCATIONS_CANNOT_HAVE_CHILDREN_TARGETED
Excluded locations cannot have any of their children targeted.
POSTAL_CODES_CANNOT_BE_EXCLUDED
Postal codes cannot be excluded.
UNTARGETABLE_LOCATION
Indicates that location targeting is not allowed.
UNKNOWN
The value returned if the actual value is not exposed by the requested API version.