Page Summary
-
Several Ad Manager services, including LineItemService, use the GeoTargetingError.Reason enum to indicate issues with geographical targeting.
-
GeoTargetingError.Reason provides specific reasons for targeting errors, such as attempting to exclude a targeted location or excluding postal codes.
-
The enum includes reasons like
TARGETED_LOCATIONS_NOT_EXCLUDABLE,EXCLUDED_LOCATIONS_CANNOT_HAVE_CHILDREN_TARGETED, andPOSTAL_CODES_CANNOT_BE_EXCLUDED. -
An
UNTARGETABLE_LOCATIONreason signifies that location targeting is not permitted. -
An
UNKNOWNreason is used when the actual error value is not exposed by the current 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. |