# type RequiredSizeError (v202505)

**Service** [CreativeService](https://developers.google.com/ad-manager/api/reference/v202505/CreativeService.RequiredSizeError) [CreativeSetService](https://developers.google.com/ad-manager/api/reference/v202505/CreativeSetService.RequiredSizeError) [ForecastService](https://developers.google.com/ad-manager/api/reference/v202505/ForecastService.RequiredSizeError) [LineItemCreativeAssociationService](https://developers.google.com/ad-manager/api/reference/v202505/LineItemCreativeAssociationService.RequiredSizeError) [LineItemService](https://developers.google.com/ad-manager/api/reference/v202505/LineItemService.RequiredSizeError) [LineItemTemplateService](https://developers.google.com/ad-manager/api/reference/v202505/LineItemTemplateService.RequiredSizeError) **NativeStyleService** [OrderService](https://developers.google.com/ad-manager/api/reference/v202505/OrderService.RequiredSizeError) [PublisherQueryLanguageService](https://developers.google.com/ad-manager/api/reference/v202505/PublisherQueryLanguageService.RequiredSizeError) **Inheritance** [ApiError](https://developers.google.com/ad-manager/api/reference/v202505/NativeStyleService.ApiError) ▼ [ApiVersionError](https://developers.google.com/ad-manager/api/reference/v202505/NativeStyleService.ApiVersionError) [AuthenticationError](https://developers.google.com/ad-manager/api/reference/v202505/NativeStyleService.AuthenticationError) [CollectionSizeError](https://developers.google.com/ad-manager/api/reference/v202505/NativeStyleService.CollectionSizeError) [CommonError](https://developers.google.com/ad-manager/api/reference/v202505/NativeStyleService.CommonError) [CreativeTemplateError](https://developers.google.com/ad-manager/api/reference/v202505/NativeStyleService.CreativeTemplateError) [CustomTargetingError](https://developers.google.com/ad-manager/api/reference/v202505/NativeStyleService.CustomTargetingError) [EntityChildrenLimitReachedE...](https://developers.google.com/ad-manager/api/reference/v202505/NativeStyleService.EntityChildrenLimitReachedError "EntityChildrenLimitReachedError") [FeatureError](https://developers.google.com/ad-manager/api/reference/v202505/NativeStyleService.FeatureError) [ImageError](https://developers.google.com/ad-manager/api/reference/v202505/NativeStyleService.ImageError) [InternalApiError](https://developers.google.com/ad-manager/api/reference/v202505/NativeStyleService.InternalApiError) [InvalidUrlError](https://developers.google.com/ad-manager/api/reference/v202505/NativeStyleService.InvalidUrlError) [InventoryTargetingError](https://developers.google.com/ad-manager/api/reference/v202505/NativeStyleService.InventoryTargetingError) [NativeStyleError](https://developers.google.com/ad-manager/api/reference/v202505/NativeStyleService.NativeStyleError) [NotNullError](https://developers.google.com/ad-manager/api/reference/v202505/NativeStyleService.NotNullError) [NullError](https://developers.google.com/ad-manager/api/reference/v202505/NativeStyleService.NullError) [ParseError](https://developers.google.com/ad-manager/api/reference/v202505/NativeStyleService.ParseError) [PermissionError](https://developers.google.com/ad-manager/api/reference/v202505/NativeStyleService.PermissionError) [PublisherQueryLanguageConte...](https://developers.google.com/ad-manager/api/reference/v202505/NativeStyleService.PublisherQueryLanguageContextError "PublisherQueryLanguageContextError") [PublisherQueryLanguageSynta...](https://developers.google.com/ad-manager/api/reference/v202505/NativeStyleService.PublisherQueryLanguageSyntaxError "PublisherQueryLanguageSyntaxError") [QuotaError](https://developers.google.com/ad-manager/api/reference/v202505/NativeStyleService.QuotaError) [RequiredCollectionError](https://developers.google.com/ad-manager/api/reference/v202505/NativeStyleService.RequiredCollectionError) [RequiredError](https://developers.google.com/ad-manager/api/reference/v202505/NativeStyleService.RequiredError) **RequiredSizeError** [ServerError](https://developers.google.com/ad-manager/api/reference/v202505/NativeStyleService.ServerError) [StatementError](https://developers.google.com/ad-manager/api/reference/v202505/NativeStyleService.StatementError) [StringFormatError](https://developers.google.com/ad-manager/api/reference/v202505/NativeStyleService.StringFormatError) [StringLengthError](https://developers.google.com/ad-manager/api/reference/v202505/NativeStyleService.StringLengthError) [TeamError](https://developers.google.com/ad-manager/api/reference/v202505/NativeStyleService.TeamError) [UniqueError](https://developers.google.com/ad-manager/api/reference/v202505/NativeStyleService.UniqueError)

A list of all errors to be used for validating [Size](https://developers.google.com/ad-manager/api/reference/v202505/NativeStyleService.Size).

*** ** * ** ***

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/NativeStyleService.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. |
| **`RequiredSizeError`** ||
| ### `reason` | ` https://developers.google.com/ad-manager/api/reference/v202505/NativeStyleService.RequiredSizeError.Reason ` *** ** * ** *** **Enumerations** `REQUIRED` : [Creative.size](https://developers.google.com/ad-manager/api/reference/v202505/CreativeService.Creative#size) or [LineItem.creativePlaceholders](https://developers.google.com/ad-manager/api/reference/v202505/ForecastService.LineItem#creativePlaceholders) size is missing. `NOT_ALLOWED` : [LineItemCreativeAssociation.sizes](https://developers.google.com/ad-manager/api/reference/v202505/LineItemCreativeAssociationService.LineItemCreativeAssociation#sizes) must be a subset of [LineItem.creativePlaceholders](https://developers.google.com/ad-manager/api/reference/v202505/ForecastService.LineItem#creativePlaceholders) sizes. `UNKNOWN` :   The value returned if the actual value is not exposed by the requested API version. <br /> |