type CreativeTemplateError (v202411)
Stay organized with collections
Save and categorize content based on your preferences.
A catch-all error that lists all generic errors associated with CreativeTemplate.
- Namespace
-
https://www.google.com/apis/ads/publisher/v202411
Field
|
ApiError (inherited)
|
fieldPath
|
xsd:string
The OGNL field path to identify cause of error.
|
fieldPathElements
|
FieldPathElement[]
A parsed copy of the field path. For example, the field path "operations[1].operand"
corresponds to this list: {FieldPathElement(field = "operations", index = 1),
FieldPathElement(field = "operand", index = null)}.
|
trigger
|
xsd:string
The data that caused the error.
|
errorString
|
xsd:string
A simple string representation of the error and reason.
|
CreativeTemplateError
|
reason
|
CreativeTemplateError.Reason
The error reason represented by an enum.
Enumerations
-
CANNOT_PARSE_CREATIVE_TEMPLATE
- The XML of the creative template definition is malformed and cannot be parsed.
-
VARIABLE_DUPLICATE_UNIQUE_NAME
- A creative template has multiple variables with the same uniqueName.
-
VARIABLE_INVALID_UNIQUE_NAME
- The creative template contains a variable with invalid characters. Valid
characters are letters, numbers, spaces, forward slashes, dashes,
and underscores.
-
LIST_CHOICE_DUPLICATE_VALUE
- Multiple choices for a CreativeTemplateListStringVariable have the same value.
-
LIST_CHOICE_NEEDS_DEFAULT
- The choices for a CreativeTemplateListStringVariable do not contain the
default value.
-
LIST_CHOICES_EMPTY
- There are no choices specified for the list variable.
-
NO_TARGET_PLATFORMS
- No target platform is assigned to a creative template.
-
MULTIPLE_TARGET_PLATFORMS
- More than one target platform is assigned to a single creative template.
-
UNRECOGNIZED_PLACEHOLDER
- The formatter contains a placeholder which is not defined as a variable.
-
PLACEHOLDERS_NOT_IN_FORMATTER
- There are variables defined which are not being used in the formatter.
-
MISSING_INTERSTITIAL_MACRO
- The creative template is interstitial, but the formatter doesn't contain
an interstitial macro.
-
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\u003eCreativeTemplateError is a comprehensive error encompassing generic issues related to CreativeTemplate.\u003c/p\u003e\n"],["\u003cp\u003eThis error arises from various sources, including malformed XML in the creative template definition, duplicate or invalid variable names, and issues with list choices.\u003c/p\u003e\n"],["\u003cp\u003eIt also addresses problems with target platforms, placeholders within the formatter, missing interstitial macros, and more.\u003c/p\u003e\n"],["\u003cp\u003eThe error provides detailed information about the reason for the error through the \u003ccode\u003ereason\u003c/code\u003e field, which is an enum outlining specific causes like parsing failures, variable issues, platform problems, and other potential errors.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can leverage this information to troubleshoot and resolve issues related to creative templates in their Google Ad Manager integrations.\u003c/p\u003e\n"]]],["The document details the `CreativeService` and its associated error types within an API. It outlines actions related to various services like `CreativeSetService`, `CreativeTemplateService`, `LineItemCreativeAssociationService`, and `NativeStyleService`. It also defines numerous error types, including `ApiError`, `CreativeTemplateError`, and others like `AssetError`, `AuthenticationError`, and `QuotaError`. The `CreativeTemplateError` section also lists specific error reasons related to the parsing, variables, and target platforms of creative templates.\n"],null,[]]