enum CreativeTemplateError.Reason (v202508)

  • CreativeTemplateError.Reason lists reasons for errors related to creative templates.

  • Errors can stem from issues like malformed XML, duplicate or invalid variable names, problems with list choices, or incorrect target platform assignments.

  • Additional reasons include unrecognized placeholders in the formatter, unused variables, or missing interstitial macros for interstitial templates.

  • An 'UNKNOWN' value signifies an error reason not exposed in the current API version.

The reasons for the target error.


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