enum GeoTargetingError.Reason (v202502)

  • Several services in the Google Ad Manager API reference v202502, including AdRuleService, ForecastService, and OrderService, are associated with the GeoTargetingError.Reason.

  • The GeoTargetingError.Reason is an enumeration within the https://www.google.com/apis/ads/publisher/v202502 namespace detailing reasons for geo-targeting errors.

  • Specific reasons for geo-targeting errors include attempting to exclude a targeted location, excluding a location while targeting its children, or attempting to exclude postal codes.

  • The UNTARGETABLE_LOCATION reason indicates that location targeting is not permitted, while UNKNOWN is returned if the actual value is not exposed by the API version.

The reasons for the target error.


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