enum GeoTargetingError.Reason (v202411)

  • GeoTargetingError.Reason outlines the potential errors encountered when targeting locations in Google Ad Manager.

  • Targeting and exclusion conflicts, such as targeting a location while also excluding it, are among the reasons for these errors.

  • Restrictions apply to specific location types, like postal codes, which cannot be excluded.

  • The error reasons also encompass untargetable locations and cases where location targeting is disallowed.

  • This namespace helps identify the source and context of these errors within the Google Ad Manager API.

The reasons for the target error.


Namespace
https://www.google.com/apis/ads/publisher/v202411
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.