enum GeoTargetingError.Reason (v202411)

  • GeoTargetingError.Reason is an enumeration used within Google Ad Manager API to indicate errors related to geographical targeting within various services.

  • This error type can occur in services like AdRuleService, AdjustmentService, ForecastService, LineItemService, LineItemTemplateService, OrderService, ProposalLineItemService, TargetingPresetService, and YieldGroupService.

  • The reasons for GeoTargetingError include issues such as attempting to exclude targeted locations, having targeted child locations while excluding parent locations, attempting to exclude postal codes, and specifying an untargetable location.

  • GeoTargetingError.Reason provides specific error codes like TARGETED_LOCATIONS_NOT_EXCLUDABLE, EXCLUDED_LOCATIONS_CANNOT_HAVE_CHILDREN_TARGETED, POSTAL_CODES_CANNOT_BE_EXCLUDED, and UNTARGETABLE_LOCATION to help identify the cause of the error.

  • The namespace for GeoTargetingError.Reason is https://www.google.com/apis/ads/publisher/v202411.


Namespace
https://www.google.com/apis/ads/publisher/v202411
Enumeration Description
TARGETED_LOCATIONS_NOT_EXCLUDABLE
EXCLUDED_LOCATIONS_CANNOT_HAVE_CHILDREN_TARGETED
POSTAL_CODES_CANNOT_BE_EXCLUDED
UNTARGETABLE_LOCATION
UNKNOWN