enum GeoTargetingError.Reason (v202508)

  • Several Ad Manager services, such as AdRuleService, ForecastService, and LineItemService, are linked to GeoTargetingError.Reason.

  • GeoTargetingError.Reason defines why a geographical targeting error occurred within the Google Ad Manager API.

  • Common reasons for GeoTargetingError include attempting to exclude targeted locations or excluding locations while targeting their children.

  • The enumeration lists specific causes like untargetable locations and the inability to exclude postal codes.

The reasons for the target error.


Namespace
https://www.google.com/apis/ads/publisher/v202508
Enumeration Description
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.