enum CreativePreviewError.Reason (v202502)

  • CreativePreviewError provides details on why a creative preview might fail.

  • Reasons for failure include the creative not being previewable on the page or specific requirements for native and third-party creatives.

  • Previewing native creatives requires a different method using LineItemCreativeAssociationService.getPreviewUrlsForNativeStyles.

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


Namespace
https://www.google.com/apis/ads/publisher/v202502
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.