enum RequiredSizeError.Reason (v202411)

  • RequiredSizeError.Reason identifies why an error occurred due to missing or incompatible creative sizes in Google Ad Manager.

  • It has three possible values: REQUIRED, NOT_ALLOWED, and UNKNOWN, each signifying a different size-related issue.

  • REQUIRED indicates missing creative or creative placeholder sizes, while NOT_ALLOWED means association sizes aren't a subset of placeholder sizes.

  • UNKNOWN is returned when the actual reason isn't exposed by the current API version.


Namespace
https://www.google.com/apis/ads/publisher/v202411
Enumeration Description
REQUIRED Creative.size or LineItem.creativePlaceholders size is missing.
NOT_ALLOWED LineItemCreativeAssociation.sizes must be a subset of LineItem.creativePlaceholders sizes.
UNKNOWN The value returned if the actual value is not exposed by the requested API version.