public enum CreativeWrapperErrorReason extends Enum<CreativeWrapperErrorReason>
Java class for CreativeWrapperError.Reason.
The following schema fragment specifies the expected content contained within this class.
<simpleType name="CreativeWrapperError.Reason">
<restriction base="{http://www.w3.org/2001/XMLSchema}string">
<enumeration value="LABEL_ALREADY_ASSOCIATED_WITH_CREATIVE_WRAPPER"/>
<enumeration value="INVALID_LABEL_TYPE"/>
<enumeration value="UNRECOGNIZED_MACRO"/>
<enumeration value="NEITHER_HEADER_NOR_FOOTER_SPECIFIED"/>
<enumeration value="CANNOT_USE_CREATIVE_WRAPPER_TYPE"/>
<enumeration value="CANNOT_UPDATE_LABEL_ID"/>
<enumeration value="CANNOT_APPLY_TO_AD_UNIT_WITH_VIDEO_SIZES"/>
<enumeration value="CANNOT_APPLY_TO_MOBILE_AD_UNIT"/>
<enumeration value="UNKNOWN"/>
</restriction>
</simpleType>
| Enum Constant and Description |
|---|
CANNOT_APPLY_TO_AD_UNIT_WITH_VIDEO_SIZES
Cannot apply
LabelType.CREATIVE_WRAPPER labels to an ad unit
if it has no descendants with AdUnit.adUnitSizes of
AdUnitSize#environmentType as
EnvironmentType.BROWSER. |
CANNOT_APPLY_TO_MOBILE_AD_UNIT
Cannot apply
LabelType.CREATIVE_WRAPPER labels to an ad unit
if AdUnit#targetPlatform is of type TargetPlatform#MOBILE |
CANNOT_UPDATE_LABEL_ID
Cannot update
CreativeWrapper.labelId. |
CANNOT_USE_CREATIVE_WRAPPER_TYPE
The network has not been enabled for creating labels of type
LabelType.CREATIVE_WRAPPER. |
INVALID_LABEL_TYPE
The label type of a creative wrapper must be
LabelType.CREATIVE_WRAPPER. |
LABEL_ALREADY_ASSOCIATED_WITH_CREATIVE_WRAPPER
The label is already associated with a
CreativeWrapper. |
NEITHER_HEADER_NOR_FOOTER_SPECIFIED
When creating a new creative wrapper, either header or footer should exist.
|
UNKNOWN
The value returned if the actual value is not exposed by the requested API version.
|
UNRECOGNIZED_MACRO
A macro used inside the snippet is not recognized.
|
| Modifier and Type | Method and Description |
|---|---|
static CreativeWrapperErrorReason |
fromValue(String v) |
String |
value() |
static CreativeWrapperErrorReason |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CreativeWrapperErrorReason[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CreativeWrapperErrorReason LABEL_ALREADY_ASSOCIATED_WITH_CREATIVE_WRAPPER
CreativeWrapper.public static final CreativeWrapperErrorReason INVALID_LABEL_TYPE
LabelType.CREATIVE_WRAPPER.public static final CreativeWrapperErrorReason UNRECOGNIZED_MACRO
public static final CreativeWrapperErrorReason NEITHER_HEADER_NOR_FOOTER_SPECIFIED
public static final CreativeWrapperErrorReason CANNOT_USE_CREATIVE_WRAPPER_TYPE
LabelType.CREATIVE_WRAPPER.public static final CreativeWrapperErrorReason CANNOT_UPDATE_LABEL_ID
CreativeWrapper.labelId.public static final CreativeWrapperErrorReason CANNOT_APPLY_TO_AD_UNIT_WITH_VIDEO_SIZES
LabelType.CREATIVE_WRAPPER labels to an ad unit
if it has no descendants with AdUnit.adUnitSizes of
AdUnitSize#environmentType as
EnvironmentType.BROWSER.public static final CreativeWrapperErrorReason CANNOT_APPLY_TO_MOBILE_AD_UNIT
LabelType.CREATIVE_WRAPPER labels to an ad unit
if AdUnit#targetPlatform is of type TargetPlatform#MOBILEpublic static final CreativeWrapperErrorReason UNKNOWN
public static CreativeWrapperErrorReason[] values()
for (CreativeWrapperErrorReason c : CreativeWrapperErrorReason.values()) System.out.println(c);
public static CreativeWrapperErrorReason 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 CreativeWrapperErrorReason fromValue(String v)
Copyright © 2018. All Rights Reserved.