enum RequiredSizeError.Reason (v202502)
Stay organized with collections
Save and categorize content based on your preferences.
- Namespace
-
https://www.google.com/apis/ads/publisher/v202502
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-06 UTC.
[null,null,["Last updated 2025-08-06 UTC."],[],["The content defines `RequiredSizeError.Reason` within the namespace `https://www.google.com/apis/ads/publisher/v202502`. It outlines error reasons for various services including `CreativeService`, `CreativeSetService`, `ForecastService`, and others. Three enumeration values are defined: `REQUIRED`, indicating a missing creative or line item size; `NOT_ALLOWED`, showing an invalid size subset; and `UNKNOWN`, for unexposed values in the API version. These error reason is used for managing size validation in creative and line item objects.\n"],null,["# enum RequiredSizeError.Reason (v202502)\n\n**Service** \n[CreativeService](/ad-manager/api/reference/v202502/CreativeService.RequiredSizeError.Reason) **CreativeSetService** [ForecastService](/ad-manager/api/reference/v202502/ForecastService.RequiredSizeError.Reason) [LineItemCreativeAssociationService](/ad-manager/api/reference/v202502/LineItemCreativeAssociationService.RequiredSizeError.Reason) [LineItemService](/ad-manager/api/reference/v202502/LineItemService.RequiredSizeError.Reason) [LineItemTemplateService](/ad-manager/api/reference/v202502/LineItemTemplateService.RequiredSizeError.Reason) [NativeStyleService](/ad-manager/api/reference/v202502/NativeStyleService.RequiredSizeError.Reason) [OrderService](/ad-manager/api/reference/v202502/OrderService.RequiredSizeError.Reason) [PublisherQueryLanguageService](/ad-manager/api/reference/v202502/PublisherQueryLanguageService.RequiredSizeError.Reason) **Dependencies** \n[RequiredSizeError](/ad-manager/api/reference/v202502/CreativeSetService.RequiredSizeError) \n▼\n**RequiredSizeError.Reason**\n\n*** ** * ** ***\n\nNamespace\n:\n `https://www.google.com/apis/ads/publisher/v202502`\n\n| Enumeration | Description |\n|---------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `REQUIRED` | [Creative.size](/ad-manager/api/reference/v202502/CreativeService.Creative#size) or [LineItem.creativePlaceholders](/ad-manager/api/reference/v202502/ForecastService.LineItem#creativePlaceholders) size is missing. |\n| `NOT_ALLOWED` | [LineItemCreativeAssociation.sizes](/ad-manager/api/reference/v202502/LineItemCreativeAssociationService.LineItemCreativeAssociation#sizes) must be a subset of [LineItem.creativePlaceholders](/ad-manager/api/reference/v202502/ForecastService.LineItem#creativePlaceholders) sizes. |\n| `UNKNOWN` | The value returned if the actual value is not exposed by the requested API version. |"]]