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 core content details the `GeoTargetingError.Reason` enumeration, found within the specified namespace. It lists the reasons for targeting errors, which include: targeting and excluding the same location (`TARGETED_LOCATIONS_NOT_EXCLUDABLE`), excluding locations with targeted children (`EXCLUDED_LOCATIONS_CANNOT_HAVE_CHILDREN_TARGETED`), the inability to exclude postal codes (`POSTAL_CODES_CANNOT_BE_EXCLUDED`), and the prohibition of location targeting (`UNTARGETABLE_LOCATION`). It also includes `UNKNOWN` as a possible error. The content describes this error in context of multiple services.\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** [LineItemService](/ad-manager/api/reference/v202502/LineItemService.GeoTargetingError.Reason) [LineItemTemplateService](/ad-manager/api/reference/v202502/LineItemTemplateService.GeoTargetingError.Reason) [OrderService](/ad-manager/api/reference/v202502/OrderService.GeoTargetingError.Reason) [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/ForecastService.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. |"]]