enum CreativePreviewError.Reason (v202411)

  • CreativePreviewError.Reason is an enumeration within the LineItemCreativeAssociationService namespace.

  • It provides specific reasons why a creative preview URL cannot be generated.

  • Reasons include inability to preview on the page, special handling for native creatives, and the requirement of an HTML snippet for third-party creatives.

  • The UNKNOWN reason is returned if the actual value is not exposed by the API version.


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