**Service** **AdRuleService** [AdjustmentService](https://developers.google.com/ad-manager/api/reference/v202605/AdjustmentService.GeoTargetingError) [ForecastService](https://developers.google.com/ad-manager/api/reference/v202605/ForecastService.GeoTargetingError) [LineItemService](https://developers.google.com/ad-manager/api/reference/v202605/LineItemService.GeoTargetingError) [LineItemTemplateService](https://developers.google.com/ad-manager/api/reference/v202605/LineItemTemplateService.GeoTargetingError) [OrderService](https://developers.google.com/ad-manager/api/reference/v202605/OrderService.GeoTargetingError) [ProposalLineItemService](https://developers.google.com/ad-manager/api/reference/v202605/ProposalLineItemService.GeoTargetingError) [TargetingPresetService](https://developers.google.com/ad-manager/api/reference/v202605/TargetingPresetService.GeoTargetingError) [YieldGroupService](https://developers.google.com/ad-manager/api/reference/v202605/YieldGroupService.GeoTargetingError) **Inheritance** [ApiError](https://developers.google.com/ad-manager/api/reference/v202605/AdRuleService.ApiError) ▼ [AdRuleDateError](https://developers.google.com/ad-manager/api/reference/v202605/AdRuleService.AdRuleDateError) [AdRuleError](https://developers.google.com/ad-manager/api/reference/v202605/AdRuleService.AdRuleError) [AdRuleFrequencyCapError](https://developers.google.com/ad-manager/api/reference/v202605/AdRuleService.AdRuleFrequencyCapError) [AdRulePriorityError](https://developers.google.com/ad-manager/api/reference/v202605/AdRuleService.AdRulePriorityError) [AdRuleSlotError](https://developers.google.com/ad-manager/api/reference/v202605/AdRuleService.AdRuleSlotError) [AdRuleTargetingError](https://developers.google.com/ad-manager/api/reference/v202605/AdRuleService.AdRuleTargetingError) [ApiVersionError](https://developers.google.com/ad-manager/api/reference/v202605/AdRuleService.ApiVersionError) [AuthenticationError](https://developers.google.com/ad-manager/api/reference/v202605/AdRuleService.AuthenticationError) [CollectionSizeError](https://developers.google.com/ad-manager/api/reference/v202605/AdRuleService.CollectionSizeError) [CommonError](https://developers.google.com/ad-manager/api/reference/v202605/AdRuleService.CommonError) [CustomTargetingError](https://developers.google.com/ad-manager/api/reference/v202605/AdRuleService.CustomTargetingError) [FeatureError](https://developers.google.com/ad-manager/api/reference/v202605/AdRuleService.FeatureError) **GeoTargetingError** [InternalApiError](https://developers.google.com/ad-manager/api/reference/v202605/AdRuleService.InternalApiError) [InventoryTargetingError](https://developers.google.com/ad-manager/api/reference/v202605/AdRuleService.InventoryTargetingError) [NotNullError](https://developers.google.com/ad-manager/api/reference/v202605/AdRuleService.NotNullError) [ParseError](https://developers.google.com/ad-manager/api/reference/v202605/AdRuleService.ParseError) [PermissionError](https://developers.google.com/ad-manager/api/reference/v202605/AdRuleService.PermissionError) [PoddingError](https://developers.google.com/ad-manager/api/reference/v202605/AdRuleService.PoddingError) [PublisherQueryLanguageConte...](https://developers.google.com/ad-manager/api/reference/v202605/AdRuleService.PublisherQueryLanguageContextError "PublisherQueryLanguageContextError") [PublisherQueryLanguageSynta...](https://developers.google.com/ad-manager/api/reference/v202605/AdRuleService.PublisherQueryLanguageSyntaxError "PublisherQueryLanguageSyntaxError") [QuotaError](https://developers.google.com/ad-manager/api/reference/v202605/AdRuleService.QuotaError) [RequiredCollectionError](https://developers.google.com/ad-manager/api/reference/v202605/AdRuleService.RequiredCollectionError) [RequiredError](https://developers.google.com/ad-manager/api/reference/v202605/AdRuleService.RequiredError) [RequiredNumberError](https://developers.google.com/ad-manager/api/reference/v202605/AdRuleService.RequiredNumberError) [ServerError](https://developers.google.com/ad-manager/api/reference/v202605/AdRuleService.ServerError) [StatementError](https://developers.google.com/ad-manager/api/reference/v202605/AdRuleService.StatementError) [StringFormatError](https://developers.google.com/ad-manager/api/reference/v202605/AdRuleService.StringFormatError) [StringLengthError](https://developers.google.com/ad-manager/api/reference/v202605/AdRuleService.StringLengthError) [UniqueError](https://developers.google.com/ad-manager/api/reference/v202605/AdRuleService.UniqueError)

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

*** ** * ** ***

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

| ## Field ||
|---|---|
| **`ApiError` (inherited)** ||
| ### `fieldPath` | ` xsd:string` The OGNL field path to identify cause of error. |
| ### `fieldPathElements` | ` https://developers.google.com/ad-manager/api/reference/v202605/AdRuleService.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` | ` https://developers.google.com/ad-manager/api/reference/v202605/AdRuleService.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 /> |