public enum AdExclusionRuleErrorReason extends Enum<AdExclusionRuleErrorReason>
Java class for AdExclusionRuleError.Reason.
The following schema fragment specifies the expected content contained within this class.
<simpleType name="AdExclusionRuleError.Reason">
<restriction base="{http://www.w3.org/2001/XMLSchema}string">
<enumeration value="BLOCK_ALL_RULE_CANNOT_INCLUDE_ROOT_AD_UNIT"/>
<enumeration value="BLOCK_ALL_RULE_CANNOT_HAVE_BLOCKED_LABELS"/>
<enumeration value="BLOCK_ALL_RULE_MUST_CONTAIN_ALLOWED_LABELS"/>
<enumeration value="RULE_MUST_CONTAIN_BLOCKING"/>
<enumeration value="BLOCKED_LABEL_ALSO_ALLOWED"/>
<enumeration value="LABELS_MUST_BE_AD_EXCLUSION_TYPE"/>
<enumeration value="EXCLUDED_AD_UNIT_ALSO_INCLUDED"/>
<enumeration value="UNKNOWN"/>
</restriction>
</simpleType>
| Modifier and Type | Method and Description |
|---|---|
static AdExclusionRuleErrorReason |
fromValue(String v) |
String |
value() |
static AdExclusionRuleErrorReason |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AdExclusionRuleErrorReason[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AdExclusionRuleErrorReason BLOCK_ALL_RULE_CANNOT_INCLUDE_ROOT_AD_UNIT
AdExclusionRule.inventoryTargeting cannot target the root ad unit if
AdExclusionRule.isBlockAll is true.public static final AdExclusionRuleErrorReason BLOCK_ALL_RULE_CANNOT_HAVE_BLOCKED_LABELS
AdExclusionRule.blockedLabelIds must be empty if
AdExclusionRule.isBlockAll is true.public static final AdExclusionRuleErrorReason BLOCK_ALL_RULE_MUST_CONTAIN_ALLOWED_LABELS
AdExclusionRule.allowedLabelIds must contain allowed labels if
AdExclusionRule.isBlockAll is true.public static final AdExclusionRuleErrorReason RULE_MUST_CONTAIN_BLOCKING
AdExclusionRule must contain blocking information.public static final AdExclusionRuleErrorReason BLOCKED_LABEL_ALSO_ALLOWED
AdExclusionRule.allowedLabelIds and
AdExclusionRule.blockedLabelIds.public static final AdExclusionRuleErrorReason LABELS_MUST_BE_AD_EXCLUSION_TYPE
AdExclusionRule.allowedLabelIds and
AdExclusionRule.blockedLabelIds must correspond to Label objects with type
Label#AD_EXCLUSION.public static final AdExclusionRuleErrorReason EXCLUDED_AD_UNIT_ALSO_INCLUDED
InventoryTargeting.targetedAdUnits and
InventoryTargeting.excludedAdUnits in AdExclusionRule.inventoryTargeting.public static final AdExclusionRuleErrorReason UNKNOWN
public static AdExclusionRuleErrorReason[] values()
for (AdExclusionRuleErrorReason c : AdExclusionRuleErrorReason.values()) System.out.println(c);
public static AdExclusionRuleErrorReason 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 AdExclusionRuleErrorReason fromValue(String v)
Copyright © 2018. All Rights Reserved.