enum CreativePreviewError.Reason (v202502)
Stay organized with collections
Save and categorize content based on your preferences.
Service
LineItemCreativeAssociation...
- 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.
|
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 document details `CreativePreviewError.Reason` within the `LineItemCreativeAssociationService` namespace. It outlines four possible error reasons when generating creative previews: `CANNOT_GENERATE_PREVIEW_URL` (preview not supported), `CANNOT_GENERATE_PREVIEW_URL_FOR_NATIVE_CREATIVES` (use `getPreviewUrlsForNativeStyles` instead), `HTML_SNIPPET_REQUIRED_FOR_THIRD_PARTY_CREATIVE` (HTML snippet needed), and `UNKNOWN` (value not available in the current API version). These errors are related to the ability to generate preview URLs for different types of creatives.\n"],null,["# enum CreativePreviewError.Reason (v202502)\n\n**Service** \n**LineItemCreativeAssociation...** **Dependencies** \n[CreativePreviewError](/ad-manager/api/reference/v202502/LineItemCreativeAssociationService.CreativePreviewError) \n▼\n**CreativePreviewError.Reason**\n\n*** ** * ** ***\n\nNamespace\n:\n `https://www.google.com/apis/ads/publisher/v202502`\n\n| Enumeration | Description |\n|----------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `CANNOT_GENERATE_PREVIEW_URL` | The creative cannot be previewed on this page. |\n| `CANNOT_GENERATE_PREVIEW_URL_FOR_NATIVE_CREATIVES` | Preview URLs for native creatives must be retrieved with [LineItemCreativeAssociationService.getPreviewUrlsForNativeStyles](/ad-manager/api/reference/v202502/LineItemCreativeAssociationService#getPreviewUrlsForNativeStyles). |\n| `HTML_SNIPPET_REQUIRED_FOR_THIRD_PARTY_CREATIVE` | Third party creatives must have an html snippet set in order to obtain a preview URL. |\n| `UNKNOWN` | The value returned if the actual value is not exposed by the requested API version. |"]]