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 details the `RequiredSizeError.Reason` within the Google Ad Manager API v202502. It covers services like Creative, CreativeSet, Forecast, LineItemCreativeAssociation, LineItem, and more. Key actions involve managing sizes for creatives and line items. `RequiredSizeError.Reason` has three possible enumerations: `REQUIRED` (missing size), `NOT_ALLOWED` (sizes mismatch), and `UNKNOWN` (value not exposed by API). These errors relate to `Creative.size`, `LineItem.creativePlaceholders`, and `LineItemCreativeAssociation.sizes`.\n"],null,["# enum RequiredSizeError.Reason (v202502)\n\n**Service** \n[CreativeService](/ad-manager/api/reference/v202502/CreativeService.RequiredSizeError.Reason) [CreativeSetService](/ad-manager/api/reference/v202502/CreativeSetService.RequiredSizeError.Reason) [ForecastService](/ad-manager/api/reference/v202502/ForecastService.RequiredSizeError.Reason) [LineItemCreativeAssociationService](/ad-manager/api/reference/v202502/LineItemCreativeAssociationService.RequiredSizeError.Reason) **LineItemService** [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/LineItemService.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/LineItemService.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/LineItemService.LineItem#creativePlaceholders) sizes. |\n| `UNKNOWN` | The value returned if the actual value is not exposed by the requested API version. |"]]