enum GeoTargetingError.Reason (v202502)
Stay organized with collections
Save and categorize content based on your preferences.
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.
|
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 2025-08-06 UTC.
[null,null,["Last updated 2025-08-06 UTC."],[],["The provided content outlines `GeoTargetingError.Reason`, detailing potential errors in location targeting across several services within the ad management system. These services include `AdRuleService`, `AdjustmentService`, `ForecastService`, `LineItemService`, `LineItemTemplateService`, `OrderService`, `ProposalLineItemService`, `TargetingPresetService`, and `YieldGroupService`. The errors encompass `TARGETED_LOCATIONS_NOT_EXCLUDABLE`, `EXCLUDED_LOCATIONS_CANNOT_HAVE_CHILDREN_TARGETED`, `POSTAL_CODES_CANNOT_BE_EXCLUDED`, `UNTARGETABLE_LOCATION`, and `UNKNOWN`.\n"],null,["# enum GeoTargetingError.Reason (v202502)\n\n**Service** \n[AdRuleService](/ad-manager/api/reference/v202502/AdRuleService.GeoTargetingError.Reason) [AdjustmentService](/ad-manager/api/reference/v202502/AdjustmentService.GeoTargetingError.Reason) [ForecastService](/ad-manager/api/reference/v202502/ForecastService.GeoTargetingError.Reason) [LineItemService](/ad-manager/api/reference/v202502/LineItemService.GeoTargetingError.Reason) [LineItemTemplateService](/ad-manager/api/reference/v202502/LineItemTemplateService.GeoTargetingError.Reason) **OrderService** [ProposalLineItemService](/ad-manager/api/reference/v202502/ProposalLineItemService.GeoTargetingError.Reason) [TargetingPresetService](/ad-manager/api/reference/v202502/TargetingPresetService.GeoTargetingError.Reason) [YieldGroupService](/ad-manager/api/reference/v202502/YieldGroupService.GeoTargetingError.Reason) **Dependencies** \n[GeoTargetingError](/ad-manager/api/reference/v202502/OrderService.GeoTargetingError) \n▼\n**GeoTargetingError.Reason**\n\nThe reasons for the target error.\n\n*** ** * ** ***\n\nNamespace\n:\n `https://www.google.com/apis/ads/publisher/v202502`\n\n| Enumeration | Description |\n|----------------------------------------------------|-------------------------------------------------------------------------------------|\n| `TARGETED_LOCATIONS_NOT_EXCLUDABLE` | A location that is targeted cannot also be excluded. |\n| `EXCLUDED_LOCATIONS_CANNOT_HAVE_CHILDREN_TARGETED` | Excluded locations cannot have any of their children targeted. |\n| `POSTAL_CODES_CANNOT_BE_EXCLUDED` | Postal codes cannot be excluded. |\n| `UNTARGETABLE_LOCATION` | Indicates that location targeting is not allowed. |\n| `UNKNOWN` | The value returned if the actual value is not exposed by the requested API version. |"]]