public enum CreativeTemplateErrorReason extends Enum<CreativeTemplateErrorReason>
Java class for CreativeTemplateError.Reason.
The following schema fragment specifies the expected content contained within this class.
<simpleType name="CreativeTemplateError.Reason">
<restriction base="{http://www.w3.org/2001/XMLSchema}string">
<enumeration value="CANNOT_PARSE_CREATIVE_TEMPLATE"/>
<enumeration value="VARIABLE_DUPLICATE_UNIQUE_NAME"/>
<enumeration value="VARIABLE_INVALID_UNIQUE_NAME"/>
<enumeration value="LIST_CHOICE_DUPLICATE_VALUE"/>
<enumeration value="LIST_CHOICE_NEEDS_DEFAULT"/>
<enumeration value="LIST_CHOICES_EMPTY"/>
<enumeration value="NO_TARGET_PLATFORMS"/>
<enumeration value="MULTIPLE_TARGET_PLATFORMS"/>
<enumeration value="UNRECOGNIZED_PLACEHOLDER"/>
<enumeration value="PLACEHOLDERS_NOT_IN_FORMATTER"/>
<enumeration value="MISSING_INTERSTITIAL_MACRO"/>
<enumeration value="UNKNOWN"/>
</restriction>
</simpleType>
| Enum Constant and Description |
|---|
CANNOT_PARSE_CREATIVE_TEMPLATE
The XML of the creative template definition is malformed and cannot be parsed.
|
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.
|
MISSING_INTERSTITIAL_MACRO
The creative template is interstitial, but the formatter doesn't contain
an interstitial macro.
|
MULTIPLE_TARGET_PLATFORMS
More than one target platform is assigned to a single creative template.
|
NO_TARGET_PLATFORMS
No target platform is assigned to a creative template.
|
PLACEHOLDERS_NOT_IN_FORMATTER
There are variables defined which are not being used in the formatter.
|
UNKNOWN
The value returned if the actual value is not exposed by the requested API version.
|
UNRECOGNIZED_PLACEHOLDER
The formatter contains a placeholder which is not defined as a variable.
|
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.
|
| Modifier and Type | Method and Description |
|---|---|
static CreativeTemplateErrorReason |
fromValue(String v) |
String |
value() |
static CreativeTemplateErrorReason |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CreativeTemplateErrorReason[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CreativeTemplateErrorReason CANNOT_PARSE_CREATIVE_TEMPLATE
public static final CreativeTemplateErrorReason VARIABLE_DUPLICATE_UNIQUE_NAME
public static final CreativeTemplateErrorReason VARIABLE_INVALID_UNIQUE_NAME
public static final CreativeTemplateErrorReason LIST_CHOICE_DUPLICATE_VALUE
public static final CreativeTemplateErrorReason LIST_CHOICE_NEEDS_DEFAULT
public static final CreativeTemplateErrorReason LIST_CHOICES_EMPTY
public static final CreativeTemplateErrorReason NO_TARGET_PLATFORMS
public static final CreativeTemplateErrorReason MULTIPLE_TARGET_PLATFORMS
public static final CreativeTemplateErrorReason UNRECOGNIZED_PLACEHOLDER
public static final CreativeTemplateErrorReason PLACEHOLDERS_NOT_IN_FORMATTER
public static final CreativeTemplateErrorReason MISSING_INTERSTITIAL_MACRO
public static final CreativeTemplateErrorReason UNKNOWN
public static CreativeTemplateErrorReason[] values()
for (CreativeTemplateErrorReason c : CreativeTemplateErrorReason.values()) System.out.println(c);
public static CreativeTemplateErrorReason valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic String value()
public static CreativeTemplateErrorReason fromValue(String v)
Copyright © 2018. All Rights Reserved.