# type InventoryUnitSizesError (v202505)

**Service** **AdjustmentService** [InventoryService](https://developers.google.com/ad-manager/api/reference/v202505/InventoryService.InventoryUnitSizesError) [SuggestedAdUnitService](https://developers.google.com/ad-manager/api/reference/v202505/SuggestedAdUnitService.InventoryUnitSizesError) **Inheritance** [ApiError](https://developers.google.com/ad-manager/api/reference/v202505/AdjustmentService.ApiError) ▼ [ApiVersionError](https://developers.google.com/ad-manager/api/reference/v202505/AdjustmentService.ApiVersionError) [AuthenticationError](https://developers.google.com/ad-manager/api/reference/v202505/AdjustmentService.AuthenticationError) [CollectionSizeError](https://developers.google.com/ad-manager/api/reference/v202505/AdjustmentService.CollectionSizeError) [CommonError](https://developers.google.com/ad-manager/api/reference/v202505/AdjustmentService.CommonError) [CustomTargetingError](https://developers.google.com/ad-manager/api/reference/v202505/AdjustmentService.CustomTargetingError) [DateError](https://developers.google.com/ad-manager/api/reference/v202505/AdjustmentService.DateError) [DateTimeRangeTargetingError](https://developers.google.com/ad-manager/api/reference/v202505/AdjustmentService.DateTimeRangeTargetingError) [DayPartTargetingError](https://developers.google.com/ad-manager/api/reference/v202505/AdjustmentService.DayPartTargetingError) [EntityLimitReachedError](https://developers.google.com/ad-manager/api/reference/v202505/AdjustmentService.EntityLimitReachedError) [FeatureError](https://developers.google.com/ad-manager/api/reference/v202505/AdjustmentService.FeatureError) [ForecastAdjustmentError](https://developers.google.com/ad-manager/api/reference/v202505/AdjustmentService.ForecastAdjustmentError) [ForecastError](https://developers.google.com/ad-manager/api/reference/v202505/AdjustmentService.ForecastError) [GenericTargetingError](https://developers.google.com/ad-manager/api/reference/v202505/AdjustmentService.GenericTargetingError) [GeoTargetingError](https://developers.google.com/ad-manager/api/reference/v202505/AdjustmentService.GeoTargetingError) [InternalApiError](https://developers.google.com/ad-manager/api/reference/v202505/AdjustmentService.InternalApiError) [InvalidUrlError](https://developers.google.com/ad-manager/api/reference/v202505/AdjustmentService.InvalidUrlError) [InventoryTargetingError](https://developers.google.com/ad-manager/api/reference/v202505/AdjustmentService.InventoryTargetingError) [InventoryUnitError](https://developers.google.com/ad-manager/api/reference/v202505/AdjustmentService.InventoryUnitError) **InventoryUnitSizesError** [NotNullError](https://developers.google.com/ad-manager/api/reference/v202505/AdjustmentService.NotNullError) [NullError](https://developers.google.com/ad-manager/api/reference/v202505/AdjustmentService.NullError) [ParseError](https://developers.google.com/ad-manager/api/reference/v202505/AdjustmentService.ParseError) [PermissionError](https://developers.google.com/ad-manager/api/reference/v202505/AdjustmentService.PermissionError) [PublisherQueryLanguageConte...](https://developers.google.com/ad-manager/api/reference/v202505/AdjustmentService.PublisherQueryLanguageContextError "PublisherQueryLanguageContextError") [PublisherQueryLanguageSynta...](https://developers.google.com/ad-manager/api/reference/v202505/AdjustmentService.PublisherQueryLanguageSyntaxError "PublisherQueryLanguageSyntaxError") [QuotaError](https://developers.google.com/ad-manager/api/reference/v202505/AdjustmentService.QuotaError) [RequiredCollectionError](https://developers.google.com/ad-manager/api/reference/v202505/AdjustmentService.RequiredCollectionError) [RequiredError](https://developers.google.com/ad-manager/api/reference/v202505/AdjustmentService.RequiredError) [ServerError](https://developers.google.com/ad-manager/api/reference/v202505/AdjustmentService.ServerError) [StatementError](https://developers.google.com/ad-manager/api/reference/v202505/AdjustmentService.StatementError) [StringFormatError](https://developers.google.com/ad-manager/api/reference/v202505/AdjustmentService.StringFormatError) [StringLengthError](https://developers.google.com/ad-manager/api/reference/v202505/AdjustmentService.StringLengthError) [TechnologyTargetingError](https://developers.google.com/ad-manager/api/reference/v202505/AdjustmentService.TechnologyTargetingError) [TrafficForecastSegmentError](https://developers.google.com/ad-manager/api/reference/v202505/AdjustmentService.TrafficForecastSegmentError) [TypeError](https://developers.google.com/ad-manager/api/reference/v202505/AdjustmentService.TypeError) [UniqueError](https://developers.google.com/ad-manager/api/reference/v202505/AdjustmentService.UniqueError) [UserDomainTargetingError](https://developers.google.com/ad-manager/api/reference/v202505/AdjustmentService.UserDomainTargetingError)

An error specifically for InventoryUnitSizes.

*** ** * ** ***

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

| ## Field ||
|---|---|
| **`ApiError` (inherited)** ||
| ### `fieldPath` | ` xsd:string` The OGNL field path to identify cause of error. |
| ### `fieldPathElements` | ` https://developers.google.com/ad-manager/api/reference/v202505/AdjustmentService.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. |
| **`InventoryUnitSizesError`** ||
| ### `reason` | ` https://developers.google.com/ad-manager/api/reference/v202505/AdjustmentService.InventoryUnitSizesError.Reason ` *** ** * ** *** **Enumerations** `INVALID_SIZES` :   A size in the ad unit is too large or too small. `INVALID_SIZE_FOR_PLATFORM` :   A size is an aspect ratio, but the ad unit is not a mobile ad unit. `VIDEO_FEATURE_MISSING` :   A size is video, but the video feature is not enabled. `VIDEO_MOBILE_LINE_ITEM_FEATURE_MISSING` :   A size is video in a mobile ad unit, but the mobile video feature is not enabled. `INVALID_SIZE_FOR_MASTER` :   A size that has companions must have an environment of VIDEO_PLAYER. `INVALID_SIZE_FOR_COMPANION` :   A size that is a companion must have an environment of BROWSER. `DUPLICATE_MASTER_SIZES` :   Duplicate video master sizes are not allowed. `ASPECT_RATIO_NOT_SUPPORTED` :   A size is an aspect ratio, but aspect ratio sizes are not enabled. `VIDEO_COMPANIONS_NOT_SUPPORTED` :   A video size has companions, but companions are not allowed for the network `UNKNOWN` :   The value returned if the actual value is not exposed by the requested API version. <br /> |