# type GeoTargetingError (v202602)

**Service** [AdRuleService](https://developers.google.com/ad-manager/api/reference/v202602/AdRuleService.GeoTargetingError.md.txt) [AdjustmentService](https://developers.google.com/ad-manager/api/reference/v202602/AdjustmentService.GeoTargetingError.md.txt) [ForecastService](https://developers.google.com/ad-manager/api/reference/v202602/ForecastService.GeoTargetingError.md.txt) [LineItemService](https://developers.google.com/ad-manager/api/reference/v202602/LineItemService.GeoTargetingError.md.txt) [LineItemTemplateService](https://developers.google.com/ad-manager/api/reference/v202602/LineItemTemplateService.GeoTargetingError.md.txt) [OrderService](https://developers.google.com/ad-manager/api/reference/v202602/OrderService.GeoTargetingError.md.txt) [ProposalLineItemService](https://developers.google.com/ad-manager/api/reference/v202602/ProposalLineItemService.GeoTargetingError.md.txt) **TargetingPresetService** [YieldGroupService](https://developers.google.com/ad-manager/api/reference/v202602/YieldGroupService.GeoTargetingError.md.txt) **Inheritance** [ApiError](https://developers.google.com/ad-manager/api/reference/v202602/TargetingPresetService.ApiError.md.txt) ▼ [ApiVersionError](https://developers.google.com/ad-manager/api/reference/v202602/TargetingPresetService.ApiVersionError.md.txt) [AuthenticationError](https://developers.google.com/ad-manager/api/reference/v202602/TargetingPresetService.AuthenticationError.md.txt) [CollectionSizeError](https://developers.google.com/ad-manager/api/reference/v202602/TargetingPresetService.CollectionSizeError.md.txt) [CommonError](https://developers.google.com/ad-manager/api/reference/v202602/TargetingPresetService.CommonError.md.txt) [CustomTargetingError](https://developers.google.com/ad-manager/api/reference/v202602/TargetingPresetService.CustomTargetingError.md.txt) [DateTimeRangeTargetingError](https://developers.google.com/ad-manager/api/reference/v202602/TargetingPresetService.DateTimeRangeTargetingError.md.txt) [DayPartTargetingError](https://developers.google.com/ad-manager/api/reference/v202602/TargetingPresetService.DayPartTargetingError.md.txt) [EntityChildrenLimitReachedE...](https://developers.google.com/ad-manager/api/reference/v202602/TargetingPresetService.EntityChildrenLimitReachedError.md.txt "EntityChildrenLimitReachedError") [EntityLimitReachedError](https://developers.google.com/ad-manager/api/reference/v202602/TargetingPresetService.EntityLimitReachedError.md.txt) [FeatureError](https://developers.google.com/ad-manager/api/reference/v202602/TargetingPresetService.FeatureError.md.txt) [GenericTargetingError](https://developers.google.com/ad-manager/api/reference/v202602/TargetingPresetService.GenericTargetingError.md.txt) **GeoTargetingError** [InternalApiError](https://developers.google.com/ad-manager/api/reference/v202602/TargetingPresetService.InternalApiError.md.txt) [InventoryTargetingError](https://developers.google.com/ad-manager/api/reference/v202602/TargetingPresetService.InventoryTargetingError.md.txt) [MobileApplicationTargetingE...](https://developers.google.com/ad-manager/api/reference/v202602/TargetingPresetService.MobileApplicationTargetingError.md.txt "MobileApplicationTargetingError") [NotNullError](https://developers.google.com/ad-manager/api/reference/v202602/TargetingPresetService.NotNullError.md.txt) [ParseError](https://developers.google.com/ad-manager/api/reference/v202602/TargetingPresetService.ParseError.md.txt) [PermissionError](https://developers.google.com/ad-manager/api/reference/v202602/TargetingPresetService.PermissionError.md.txt) [PublisherProvidedSignalsTar...](https://developers.google.com/ad-manager/api/reference/v202602/TargetingPresetService.PublisherProvidedSignalsTargetingError.md.txt "PublisherProvidedSignalsTargetingError") [PublisherQueryLanguageConte...](https://developers.google.com/ad-manager/api/reference/v202602/TargetingPresetService.PublisherQueryLanguageContextError.md.txt "PublisherQueryLanguageContextError") [PublisherQueryLanguageSynta...](https://developers.google.com/ad-manager/api/reference/v202602/TargetingPresetService.PublisherQueryLanguageSyntaxError.md.txt "PublisherQueryLanguageSyntaxError") [QuotaError](https://developers.google.com/ad-manager/api/reference/v202602/TargetingPresetService.QuotaError.md.txt) [RequestPlatformTargetingError](https://developers.google.com/ad-manager/api/reference/v202602/TargetingPresetService.RequestPlatformTargetingError.md.txt) [RequiredCollectionError](https://developers.google.com/ad-manager/api/reference/v202602/TargetingPresetService.RequiredCollectionError.md.txt) [RequiredError](https://developers.google.com/ad-manager/api/reference/v202602/TargetingPresetService.RequiredError.md.txt) [ServerError](https://developers.google.com/ad-manager/api/reference/v202602/TargetingPresetService.ServerError.md.txt) [StatementError](https://developers.google.com/ad-manager/api/reference/v202602/TargetingPresetService.StatementError.md.txt) [StringFormatError](https://developers.google.com/ad-manager/api/reference/v202602/TargetingPresetService.StringFormatError.md.txt) [StringLengthError](https://developers.google.com/ad-manager/api/reference/v202602/TargetingPresetService.StringLengthError.md.txt) [TechnologyTargetingError](https://developers.google.com/ad-manager/api/reference/v202602/TargetingPresetService.TechnologyTargetingError.md.txt) [UniqueError](https://developers.google.com/ad-manager/api/reference/v202602/TargetingPresetService.UniqueError.md.txt) [UserDomainTargetingError](https://developers.google.com/ad-manager/api/reference/v202602/TargetingPresetService.UserDomainTargetingError.md.txt) [VideoPositionTargetingError](https://developers.google.com/ad-manager/api/reference/v202602/TargetingPresetService.VideoPositionTargetingError.md.txt)

Lists all errors associated with geographical targeting for a
[LineItem](https://developers.google.com/ad-manager/api/reference/v202602/ForecastService.LineItem.md.txt).

*** ** * ** ***

Namespace
:
    `https://www.google.com/apis/ads/publisher/v202602`

| ## Field ||
|---|---|
| **`ApiError` (inherited)** ||
| ### `fieldPath` | ` xsd:string` The OGNL field path to identify cause of error. |
| ### `fieldPathElements` | ` FieldPathElement[]` A parsed copy of the field path. For example, the field path "operations\[1\].operand" corresponds to this list: {FieldPathElement(field = "operations", index = 1), FieldPathElement(field = "operand", index = null)}. |
| ### `trigger` | ` xsd:string` The data that caused the error. |
| ### `errorString` | ` xsd:string` A simple string representation of the error and reason. |
| **`GeoTargetingError`** ||
| ### `reason` | ` GeoTargetingError.Reason ` The error reason represented by an enum. *** ** * ** *** **Enumerations** `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. <br /> |