enum CreativePreviewError.Reason (v202505)

  • CreativePreviewError provides reasons why a creative preview URL might not be generated.

  • Some creatives cannot be previewed on the current page, while others require specific methods like getPreviewUrlsForNativeStyles for native creatives.

  • Third-party creatives need an HTML snippet set to obtain a preview URL.

  • The UNKNOWN reason is returned when the actual error value is not exposed by the requested API version.


Namespace
https://www.google.com/apis/ads/publisher/v202505
Enumeration Description
CANNOT_GENERATE_PREVIEW_URL The creative cannot be previewed on this page.
CANNOT_GENERATE_PREVIEW_URL_FOR_NATIVE_CREATIVES Preview URLs for native creatives must be retrieved with LineItemCreativeAssociationService.getPreviewUrlsForNativeStyles.
HTML_SNIPPET_REQUIRED_FOR_THIRD_PARTY_CREATIVE Third party creatives must have an html snippet set in order to obtain a preview URL.
UNKNOWN The value returned if the actual value is not exposed by the requested API version.