enum GeoTargetingError.Reason (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
|
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-11-19 UTC.
[null,null,["Last updated 2024-11-19 UTC."],[[["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`."]]],["The core content outlines `GeoTargetingError.Reason` within the Google Ad Manager API v202411. This error type, associated with multiple services like `AdRuleService` and `YieldGroupService`, has five possible reasons: `TARGETED_LOCATIONS_NOT_EXCLUDABLE`, `EXCLUDED_LOCATIONS_CANNOT_HAVE_CHILDREN_TARGETED`, `POSTAL_CODES_CANNOT_BE_EXCLUDED`, `UNTARGETABLE_LOCATION`, and `UNKNOWN`. These reasons describe various restrictions related to targeting and excluding locations within ad campaigns. The namespace for this error type is provided as well.\n"]]