enum CreativePreviewError.Reason (v202411)
Stay organized with collections
Save and categorize content based on your preferences.
Service
LineItemCreativeAssociation...
- 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.
|
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."],[[["\u003cp\u003eThe \u003ccode\u003eCreativePreviewError\u003c/code\u003e enumeration provides reasons why a creative preview might fail within Google Ad Manager.\u003c/p\u003e\n"],["\u003cp\u003eErrors can arise from issues like the inability to generate a preview URL, specific requirements for native or third-party creatives, or unknown reasons.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can use the error reasons, such as \u003ccode\u003eCANNOT_GENERATE_PREVIEW_URL\u003c/code\u003e or \u003ccode\u003eHTML_SNIPPET_REQUIRED_FOR_THIRD_PARTY_CREATIVE\u003c/code\u003e, to troubleshoot and resolve creative preview problems.\u003c/p\u003e\n"],["\u003cp\u003eNative creatives require a different method (\u003ccode\u003egetPreviewUrlsForNativeStyles\u003c/code\u003e) to retrieve preview URLs, as indicated by the \u003ccode\u003eCANNOT_GENERATE_PREVIEW_URL_FOR_NATIVE_CREATIVES\u003c/code\u003e error.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eUNKNOWN\u003c/code\u003e error signifies an issue not exposed by the current API version, offering a fallback for unexpected preview failures.\u003c/p\u003e\n"]]],["The `CreativePreviewError.Reason` enumeration outlines reasons why a creative preview URL cannot be generated. Specific causes include the inability to preview on a given page (`CANNOT_GENERATE_PREVIEW_URL`), the requirement to use a different method for native creatives (`CANNOT_GENERATE_PREVIEW_URL_FOR_NATIVE_CREATIVES`), and the need for an HTML snippet for third-party creatives (`HTML_SNIPPET_REQUIRED_FOR_THIRD_PARTY_CREATIVE`). An `UNKNOWN` reason is returned when the real value is hidden. These are all parts of the `LineItemCreativeAssociationService`.\n"],null,["# enum CreativePreviewError.Reason (v202411)\n\n**Service** \n**LineItemCreativeAssociation...** **Dependencies** \n[CreativePreviewError](/ad-manager/api/reference/v202411/LineItemCreativeAssociationService.CreativePreviewError) \n▼\n**CreativePreviewError.Reason**\n\n*** ** * ** ***\n\nNamespace\n:\n `https://www.google.com/apis/ads/publisher/v202411`\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/v202411/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. |"]]