public enum NativeStyleErrorReason extends Enum<NativeStyleErrorReason>
Java class for NativeStyleError.Reason.
The following schema fragment specifies the expected content contained within this class.
<simpleType name="NativeStyleError.Reason">
<restriction base="{http://www.w3.org/2001/XMLSchema}string">
<enumeration value="UNRECOGNIZED_PLACEHOLDER"/>
<enumeration value="NATIVE_CREATIVE_TEMPLATE_REQUIRED"/>
<enumeration value="ACTIVE_CREATIVE_TEMPLATE_REQUIRED"/>
<enumeration value="UNIQUE_SNIPPET_REQUIRED"/>
<enumeration value="INVALID_CUSTOM_TARGETING_MATCH_TYPE"/>
<enumeration value="TOO_MANY_CUSTOM_TARGETING_KEY_VALUES"/>
<enumeration value="INVALID_TARGETING_TYPE"/>
<enumeration value="INVALID_INVENTORY_TARTGETING_TYPE"/>
<enumeration value="UNRECOGNIZED_MACRO"/>
<enumeration value="UNKNOWN"/>
</restriction>
</simpleType>
| Enum Constant and Description |
|---|
ACTIVE_CREATIVE_TEMPLATE_REQUIRED
Native styles can only be created under active creative templates.
|
INVALID_CUSTOM_TARGETING_MATCH_TYPE
Targeting expressions on the NativeStyle can only have custom criteria targeting
with
CustomTargetingValue.MatchType#EXACT. |
INVALID_INVENTORY_TARTGETING_TYPE
Native styles only allows inclusion of inventory units.
|
INVALID_TARGETING_TYPE
Targeting expressions on the native style can only have inventory targeting and/or
custom targeting.
|
NATIVE_CREATIVE_TEMPLATE_REQUIRED
Native styles can only be created under native creative templates.
|
TOO_MANY_CUSTOM_TARGETING_KEY_VALUES
Targeting expressions on native styles can have a maximum of 20 key-value pairs.
|
UNIQUE_SNIPPET_REQUIRED
Native styles must have an HTML snippet.
|
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.
|
UNRECOGNIZED_PLACEHOLDER
The snippet of the native style contains a placeholder which is not defined as a variable
on the creative template of this native style.
|
| Modifier and Type | Method and Description |
|---|---|
static NativeStyleErrorReason |
fromValue(String v) |
String |
value() |
static NativeStyleErrorReason |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static NativeStyleErrorReason[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NativeStyleErrorReason UNRECOGNIZED_PLACEHOLDER
public static final NativeStyleErrorReason NATIVE_CREATIVE_TEMPLATE_REQUIRED
public static final NativeStyleErrorReason ACTIVE_CREATIVE_TEMPLATE_REQUIRED
public static final NativeStyleErrorReason UNIQUE_SNIPPET_REQUIRED
public static final NativeStyleErrorReason INVALID_CUSTOM_TARGETING_MATCH_TYPE
CustomTargetingValue.MatchType#EXACT.public static final NativeStyleErrorReason TOO_MANY_CUSTOM_TARGETING_KEY_VALUES
public static final NativeStyleErrorReason INVALID_TARGETING_TYPE
public static final NativeStyleErrorReason INVALID_INVENTORY_TARTGETING_TYPE
public static final NativeStyleErrorReason UNRECOGNIZED_MACRO
public static final NativeStyleErrorReason UNKNOWN
public static NativeStyleErrorReason[] values()
for (NativeStyleErrorReason c : NativeStyleErrorReason.values()) System.out.println(c);
public static NativeStyleErrorReason 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 NativeStyleErrorReason fromValue(String v)
Copyright © 2018. All Rights Reserved.