public enum CustomCreativeErrorReason extends Enum<CustomCreativeErrorReason>
Java class for CustomCreativeError.Reason.
The following schema fragment specifies the expected content contained within this class.
<simpleType name="CustomCreativeError.Reason">
<restriction base="{http://www.w3.org/2001/XMLSchema}string">
<enumeration value="DUPLICATE_MACRO_NAME_FOR_CREATIVE"/>
<enumeration value="SNIPPET_REFERENCES_MISSING_MACRO"/>
<enumeration value="UNRECOGNIZED_MACRO"/>
<enumeration value="CUSTOM_CREATIVE_NOT_ALLOWED"/>
<enumeration value="MISSING_INTERSTITIAL_MACRO"/>
<enumeration value="DUPLICATE_ASSET_IN_MACROS"/>
<enumeration value="UNKNOWN"/>
</restriction>
</simpleType>
| Enum Constant and Description |
|---|
CUSTOM_CREATIVE_NOT_ALLOWED
Custom creatives are not allowed in this context.
|
DUPLICATE_ASSET_IN_MACROS
Macros associated with the same custom creative cannot share the same
asset.
|
DUPLICATE_MACRO_NAME_FOR_CREATIVE
Macros associated with a single custom creative must have unique names.
|
MISSING_INTERSTITIAL_MACRO
The custom creative is an interstitial, but the snippet is missing an
interstitial macro.
|
SNIPPET_REFERENCES_MISSING_MACRO
The file macro referenced in the snippet does not exist.
|
UNKNOWN
The value returned if the actual value is not exposed by the requested API version.
|
UNRECOGNIZED_MACRO
The macro referenced in the snippet is not valid.
|
| Modifier and Type | Method and Description |
|---|---|
static CustomCreativeErrorReason |
fromValue(String v) |
String |
value() |
static CustomCreativeErrorReason |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CustomCreativeErrorReason[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CustomCreativeErrorReason DUPLICATE_MACRO_NAME_FOR_CREATIVE
public static final CustomCreativeErrorReason SNIPPET_REFERENCES_MISSING_MACRO
public static final CustomCreativeErrorReason UNRECOGNIZED_MACRO
public static final CustomCreativeErrorReason CUSTOM_CREATIVE_NOT_ALLOWED
public static final CustomCreativeErrorReason MISSING_INTERSTITIAL_MACRO
public static final CustomCreativeErrorReason DUPLICATE_ASSET_IN_MACROS
public static final CustomCreativeErrorReason UNKNOWN
public static CustomCreativeErrorReason[] values()
for (CustomCreativeErrorReason c : CustomCreativeErrorReason.values()) System.out.println(c);
public static CustomCreativeErrorReason 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 CustomCreativeErrorReason fromValue(String v)
Copyright © 2018. All Rights Reserved.