# type InventoryTargetingError (v202602)

**Service** [AdRuleService](https://developers.google.com/ad-manager/api/reference/v202602/AdRuleService.InventoryTargetingError.md.txt) [AdjustmentService](https://developers.google.com/ad-manager/api/reference/v202602/AdjustmentService.InventoryTargetingError.md.txt) [ForecastService](https://developers.google.com/ad-manager/api/reference/v202602/ForecastService.InventoryTargetingError.md.txt) [LineItemService](https://developers.google.com/ad-manager/api/reference/v202602/LineItemService.InventoryTargetingError.md.txt) [LineItemTemplateService](https://developers.google.com/ad-manager/api/reference/v202602/LineItemTemplateService.InventoryTargetingError.md.txt) [NativeStyleService](https://developers.google.com/ad-manager/api/reference/v202602/NativeStyleService.InventoryTargetingError.md.txt) [OrderService](https://developers.google.com/ad-manager/api/reference/v202602/OrderService.InventoryTargetingError.md.txt) **ProposalLineItemService** [PublisherQueryLanguageService](https://developers.google.com/ad-manager/api/reference/v202602/PublisherQueryLanguageService.InventoryTargetingError.md.txt) [TargetingPresetService](https://developers.google.com/ad-manager/api/reference/v202602/TargetingPresetService.InventoryTargetingError.md.txt) [YieldGroupService](https://developers.google.com/ad-manager/api/reference/v202602/YieldGroupService.InventoryTargetingError.md.txt) **Inheritance** [ApiError](https://developers.google.com/ad-manager/api/reference/v202602/ProposalLineItemService.ApiError.md.txt) ▼ [ApiVersionError](https://developers.google.com/ad-manager/api/reference/v202602/ProposalLineItemService.ApiVersionError.md.txt) [AudienceSegmentError](https://developers.google.com/ad-manager/api/reference/v202602/ProposalLineItemService.AudienceSegmentError.md.txt) [AuthenticationError](https://developers.google.com/ad-manager/api/reference/v202602/ProposalLineItemService.AuthenticationError.md.txt) [BillingError](https://developers.google.com/ad-manager/api/reference/v202602/ProposalLineItemService.BillingError.md.txt) [CollectionSizeError](https://developers.google.com/ad-manager/api/reference/v202602/ProposalLineItemService.CollectionSizeError.md.txt) [CommonError](https://developers.google.com/ad-manager/api/reference/v202602/ProposalLineItemService.CommonError.md.txt) [CurrencyCodeError](https://developers.google.com/ad-manager/api/reference/v202602/ProposalLineItemService.CurrencyCodeError.md.txt) [CustomFieldValueError](https://developers.google.com/ad-manager/api/reference/v202602/ProposalLineItemService.CustomFieldValueError.md.txt) [CustomTargetingError](https://developers.google.com/ad-manager/api/reference/v202602/ProposalLineItemService.CustomTargetingError.md.txt) [DateTimeRangeTargetingError](https://developers.google.com/ad-manager/api/reference/v202602/ProposalLineItemService.DateTimeRangeTargetingError.md.txt) [DayPartTargetingError](https://developers.google.com/ad-manager/api/reference/v202602/ProposalLineItemService.DayPartTargetingError.md.txt) [DealError](https://developers.google.com/ad-manager/api/reference/v202602/ProposalLineItemService.DealError.md.txt) [EntityChildrenLimitReachedE...](https://developers.google.com/ad-manager/api/reference/v202602/ProposalLineItemService.EntityChildrenLimitReachedError.md.txt "EntityChildrenLimitReachedError") [EntityLimitReachedError](https://developers.google.com/ad-manager/api/reference/v202602/ProposalLineItemService.EntityLimitReachedError.md.txt) [ExchangeRateError](https://developers.google.com/ad-manager/api/reference/v202602/ProposalLineItemService.ExchangeRateError.md.txt) [FeatureError](https://developers.google.com/ad-manager/api/reference/v202602/ProposalLineItemService.FeatureError.md.txt) [ForecastError](https://developers.google.com/ad-manager/api/reference/v202602/ProposalLineItemService.ForecastError.md.txt) [FrequencyCapError](https://developers.google.com/ad-manager/api/reference/v202602/ProposalLineItemService.FrequencyCapError.md.txt) [GenericTargetingError](https://developers.google.com/ad-manager/api/reference/v202602/ProposalLineItemService.GenericTargetingError.md.txt) [GeoTargetingError](https://developers.google.com/ad-manager/api/reference/v202602/ProposalLineItemService.GeoTargetingError.md.txt) [GrpSettingsError](https://developers.google.com/ad-manager/api/reference/v202602/ProposalLineItemService.GrpSettingsError.md.txt) [InternalApiError](https://developers.google.com/ad-manager/api/reference/v202602/ProposalLineItemService.InternalApiError.md.txt) **InventoryTargetingError** [LabelEntityAssociationError](https://developers.google.com/ad-manager/api/reference/v202602/ProposalLineItemService.LabelEntityAssociationError.md.txt) [LineItemError](https://developers.google.com/ad-manager/api/reference/v202602/ProposalLineItemService.LineItemError.md.txt) [LineItemFlightDateError](https://developers.google.com/ad-manager/api/reference/v202602/ProposalLineItemService.LineItemFlightDateError.md.txt) [LineItemOperationError](https://developers.google.com/ad-manager/api/reference/v202602/ProposalLineItemService.LineItemOperationError.md.txt) [MobileApplicationTargetingE...](https://developers.google.com/ad-manager/api/reference/v202602/ProposalLineItemService.MobileApplicationTargetingError.md.txt "MobileApplicationTargetingError") [NotNullError](https://developers.google.com/ad-manager/api/reference/v202602/ProposalLineItemService.NotNullError.md.txt) [ParseError](https://developers.google.com/ad-manager/api/reference/v202602/ProposalLineItemService.ParseError.md.txt) [PermissionError](https://developers.google.com/ad-manager/api/reference/v202602/ProposalLineItemService.PermissionError.md.txt) [PrecisionError](https://developers.google.com/ad-manager/api/reference/v202602/ProposalLineItemService.PrecisionError.md.txt) [PreferredDealError](https://developers.google.com/ad-manager/api/reference/v202602/ProposalLineItemService.PreferredDealError.md.txt) [ProgrammaticError](https://developers.google.com/ad-manager/api/reference/v202602/ProposalLineItemService.ProgrammaticError.md.txt) [ProposalActionError](https://developers.google.com/ad-manager/api/reference/v202602/ProposalLineItemService.ProposalActionError.md.txt) [ProposalError](https://developers.google.com/ad-manager/api/reference/v202602/ProposalLineItemService.ProposalError.md.txt) [ProposalLineItemActionError](https://developers.google.com/ad-manager/api/reference/v202602/ProposalLineItemService.ProposalLineItemActionError.md.txt) [ProposalLineItemError](https://developers.google.com/ad-manager/api/reference/v202602/ProposalLineItemService.ProposalLineItemError.md.txt) [ProposalLineItemMakegoodError](https://developers.google.com/ad-manager/api/reference/v202602/ProposalLineItemService.ProposalLineItemMakegoodError.md.txt) [ProposalLineItemProgrammati...](https://developers.google.com/ad-manager/api/reference/v202602/ProposalLineItemService.ProposalLineItemProgrammaticError.md.txt "ProposalLineItemProgrammaticError") [PublisherProvidedSignalsTar...](https://developers.google.com/ad-manager/api/reference/v202602/ProposalLineItemService.PublisherProvidedSignalsTargetingError.md.txt "PublisherProvidedSignalsTargetingError") [PublisherQueryLanguageConte...](https://developers.google.com/ad-manager/api/reference/v202602/ProposalLineItemService.PublisherQueryLanguageContextError.md.txt "PublisherQueryLanguageContextError") [PublisherQueryLanguageSynta...](https://developers.google.com/ad-manager/api/reference/v202602/ProposalLineItemService.PublisherQueryLanguageSyntaxError.md.txt "PublisherQueryLanguageSyntaxError") [QuotaError](https://developers.google.com/ad-manager/api/reference/v202602/ProposalLineItemService.QuotaError.md.txt) [RangeError](https://developers.google.com/ad-manager/api/reference/v202602/ProposalLineItemService.RangeError.md.txt) [RequestPlatformTargetingError](https://developers.google.com/ad-manager/api/reference/v202602/ProposalLineItemService.RequestPlatformTargetingError.md.txt) [RequiredCollectionError](https://developers.google.com/ad-manager/api/reference/v202602/ProposalLineItemService.RequiredCollectionError.md.txt) [RequiredError](https://developers.google.com/ad-manager/api/reference/v202602/ProposalLineItemService.RequiredError.md.txt) [RequiredNumberError](https://developers.google.com/ad-manager/api/reference/v202602/ProposalLineItemService.RequiredNumberError.md.txt) [ReservationDetailsError](https://developers.google.com/ad-manager/api/reference/v202602/ProposalLineItemService.ReservationDetailsError.md.txt) [ServerError](https://developers.google.com/ad-manager/api/reference/v202602/ProposalLineItemService.ServerError.md.txt) [StatementError](https://developers.google.com/ad-manager/api/reference/v202602/ProposalLineItemService.StatementError.md.txt) [StringFormatError](https://developers.google.com/ad-manager/api/reference/v202602/ProposalLineItemService.StringFormatError.md.txt) [StringLengthError](https://developers.google.com/ad-manager/api/reference/v202602/ProposalLineItemService.StringLengthError.md.txt) [TeamError](https://developers.google.com/ad-manager/api/reference/v202602/ProposalLineItemService.TeamError.md.txt) [TechnologyTargetingError](https://developers.google.com/ad-manager/api/reference/v202602/ProposalLineItemService.TechnologyTargetingError.md.txt) [TimeZoneError](https://developers.google.com/ad-manager/api/reference/v202602/ProposalLineItemService.TimeZoneError.md.txt) [TypeError](https://developers.google.com/ad-manager/api/reference/v202602/ProposalLineItemService.TypeError.md.txt) [UniqueError](https://developers.google.com/ad-manager/api/reference/v202602/ProposalLineItemService.UniqueError.md.txt) [UserDomainTargetingError](https://developers.google.com/ad-manager/api/reference/v202602/ProposalLineItemService.UserDomainTargetingError.md.txt) [VideoPositionTargetingError](https://developers.google.com/ad-manager/api/reference/v202602/ProposalLineItemService.VideoPositionTargetingError.md.txt)

Lists all inventory errors caused by associating a line item with a targeting
expression.

*** ** * ** ***

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. |
| **`InventoryTargetingError`** ||
| ### `reason` | ` InventoryTargetingError.Reason ` The error reason represented by an enum. *** ** * ** *** **Enumerations** `AT_LEAST_ONE_PLACEMENT_OR_INVENTORY_UNIT_REQUIRED` :   At least one placement or inventory unit is required `INVENTORY_CANNOT_BE_TARGETED_AND_EXCLUDED` :   The same inventory unit or placement cannot be targeted and excluded at the same time `INVENTORY_UNIT_CANNOT_BE_TARGETED_IF_ANCESTOR_IS_TARGETED` :   A child inventory unit cannot be targeted if its ancestor inventory unit is also targeted. `INVENTORY_UNIT_CANNOT_BE_TARGETED_IF_ANCESTOR_IS_EXCLUDED` :   A child inventory unit cannot be targeted if its ancestor inventory unit is excluded. `INVENTORY_UNIT_CANNOT_BE_EXCLUDED_IF_ANCESTOR_IS_EXCLUDED` :   A child inventory unit cannot be excluded if its ancestor inventory unit is also excluded. `EXPLICITLY_TARGETED_INVENTORY_UNIT_CANNOT_BE_TARGETED` :   An explicitly targeted inventory unit cannot be targeted. `EXPLICITLY_TARGETED_INVENTORY_UNIT_CANNOT_BE_EXCLUDED` :   An explicitly targeted inventory unit cannot be excluded. `SELF_ONLY_INVENTORY_UNIT_NOT_ALLOWED` :   A landing page-only ad unit cannot be targeted. `SELF_ONLY_INVENTORY_UNIT_WITHOUT_DESCENDANTS` :   A landing page-only ad unit cannot be targeted if it doesn't have any children. `YOUTUBE_AUDIENCE_SEGMENTS_CAN_ONLY_BE_TARGETED_WITH_YOUTUBE_SHARED_INVENTORY` :   Audience segments shared from YouTube can only be targeted with inventory shared from YouTube for cross selling. `UNKNOWN` :   The value returned if the actual value is not exposed by the requested API version. <br /> |