# type InventoryUnitError (v202608)

**Service** [AdjustmentService](https://developers.google.com/ad-manager/api/reference/v202608/AdjustmentService.InventoryUnitError.md.txt) [ForecastService](https://developers.google.com/ad-manager/api/reference/v202608/ForecastService.InventoryUnitError.md.txt) **InventoryService** [PublisherQueryLanguageService](https://developers.google.com/ad-manager/api/reference/v202608/PublisherQueryLanguageService.InventoryUnitError.md.txt) **Inheritance** [ApiError](https://developers.google.com/ad-manager/api/reference/v202608/InventoryService.ApiError.md.txt) ▼ [AdSenseAccountError](https://developers.google.com/ad-manager/api/reference/v202608/InventoryService.AdSenseAccountError.md.txt) [AdUnitCodeError](https://developers.google.com/ad-manager/api/reference/v202608/InventoryService.AdUnitCodeError.md.txt) [AdUnitHierarchyError](https://developers.google.com/ad-manager/api/reference/v202608/InventoryService.AdUnitHierarchyError.md.txt) [ApiVersionError](https://developers.google.com/ad-manager/api/reference/v202608/InventoryService.ApiVersionError.md.txt) [AuthenticationError](https://developers.google.com/ad-manager/api/reference/v202608/InventoryService.AuthenticationError.md.txt) [CollectionSizeError](https://developers.google.com/ad-manager/api/reference/v202608/InventoryService.CollectionSizeError.md.txt) [CommonError](https://developers.google.com/ad-manager/api/reference/v202608/InventoryService.CommonError.md.txt) [CompanyError](https://developers.google.com/ad-manager/api/reference/v202608/InventoryService.CompanyError.md.txt) [CreativeWrapperError](https://developers.google.com/ad-manager/api/reference/v202608/InventoryService.CreativeWrapperError.md.txt) [CrossSellError](https://developers.google.com/ad-manager/api/reference/v202608/InventoryService.CrossSellError.md.txt) [EntityChildrenLimitReachedE...](https://developers.google.com/ad-manager/api/reference/v202608/InventoryService.EntityChildrenLimitReachedError.md.txt "EntityChildrenLimitReachedError") [EntityLimitReachedError](https://developers.google.com/ad-manager/api/reference/v202608/InventoryService.EntityLimitReachedError.md.txt) [FeatureError](https://developers.google.com/ad-manager/api/reference/v202608/InventoryService.FeatureError.md.txt) [FrequencyCapError](https://developers.google.com/ad-manager/api/reference/v202608/InventoryService.FrequencyCapError.md.txt) [InternalApiError](https://developers.google.com/ad-manager/api/reference/v202608/InventoryService.InternalApiError.md.txt) [InvalidColorError](https://developers.google.com/ad-manager/api/reference/v202608/InventoryService.InvalidColorError.md.txt) [InvalidUrlError](https://developers.google.com/ad-manager/api/reference/v202608/InventoryService.InvalidUrlError.md.txt) **InventoryUnitError** [InventoryUnitRefreshRateError](https://developers.google.com/ad-manager/api/reference/v202608/InventoryService.InventoryUnitRefreshRateError.md.txt) [InventoryUnitSizesError](https://developers.google.com/ad-manager/api/reference/v202608/InventoryService.InventoryUnitSizesError.md.txt) [LabelEntityAssociationError](https://developers.google.com/ad-manager/api/reference/v202608/InventoryService.LabelEntityAssociationError.md.txt) [NotNullError](https://developers.google.com/ad-manager/api/reference/v202608/InventoryService.NotNullError.md.txt) [NullError](https://developers.google.com/ad-manager/api/reference/v202608/InventoryService.NullError.md.txt) [ParseError](https://developers.google.com/ad-manager/api/reference/v202608/InventoryService.ParseError.md.txt) [PermissionError](https://developers.google.com/ad-manager/api/reference/v202608/InventoryService.PermissionError.md.txt) [PublisherQueryLanguageConte...](https://developers.google.com/ad-manager/api/reference/v202608/InventoryService.PublisherQueryLanguageContextError.md.txt "PublisherQueryLanguageContextError") [PublisherQueryLanguageSynta...](https://developers.google.com/ad-manager/api/reference/v202608/InventoryService.PublisherQueryLanguageSyntaxError.md.txt "PublisherQueryLanguageSyntaxError") [QuotaError](https://developers.google.com/ad-manager/api/reference/v202608/InventoryService.QuotaError.md.txt) [RangeError](https://developers.google.com/ad-manager/api/reference/v202608/InventoryService.RangeError.md.txt) [RegExError](https://developers.google.com/ad-manager/api/reference/v202608/InventoryService.RegExError.md.txt) [RequestError](https://developers.google.com/ad-manager/api/reference/v202608/InventoryService.RequestError.md.txt) [RequiredCollectionError](https://developers.google.com/ad-manager/api/reference/v202608/InventoryService.RequiredCollectionError.md.txt) [RequiredError](https://developers.google.com/ad-manager/api/reference/v202608/InventoryService.RequiredError.md.txt) [RequiredNumberError](https://developers.google.com/ad-manager/api/reference/v202608/InventoryService.RequiredNumberError.md.txt) [ServerError](https://developers.google.com/ad-manager/api/reference/v202608/InventoryService.ServerError.md.txt) [StatementError](https://developers.google.com/ad-manager/api/reference/v202608/InventoryService.StatementError.md.txt) [StringFormatError](https://developers.google.com/ad-manager/api/reference/v202608/InventoryService.StringFormatError.md.txt) [StringLengthError](https://developers.google.com/ad-manager/api/reference/v202608/InventoryService.StringLengthError.md.txt) [TeamError](https://developers.google.com/ad-manager/api/reference/v202608/InventoryService.TeamError.md.txt) [TypeError](https://developers.google.com/ad-manager/api/reference/v202608/InventoryService.TypeError.md.txt) [UniqueError](https://developers.google.com/ad-manager/api/reference/v202608/InventoryService.UniqueError.md.txt)

Lists the generic errors associated with [AdUnit](https://developers.google.com/ad-manager/api/reference/v202608/InventoryService.AdUnit.md.txt) objects.

*** ** * ** ***

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

| ## 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. |
| **`InventoryUnitError`** ||
| ### `reason` | ` InventoryUnitError.Reason ` *** ** * ** *** **Enumerations** `EXPLICIT_TARGETING_NOT_ALLOWED` : [AdUnit.explicitlyTargeted](https://developers.google.com/ad-manager/api/reference/v202608/InventoryService.AdUnit.md.txt#explicitlyTargeted) can be set to `true` only in an Ad Manager 360 account. `TARGET_PLATFORM_NOT_APPLICABLE` :   The specified target platform is not applicable for the inventory unit. `ADSENSE_CANNOT_BE_ENABLED` :   AdSense cannot be enabled on this inventory unit if it is disabled for the network. `ROOT_UNIT_CANNOT_BE_DEACTIVATED` :   A root unit cannot be deactivated. `UNKNOWN` :   The value returned if the actual value is not exposed by the requested API version. <br /> |