public enum InventoryTargetingErrorReason extends Enum<InventoryTargetingErrorReason>
Java class for InventoryTargetingError.Reason.
The following schema fragment specifies the expected content contained within this class.
<simpleType name="InventoryTargetingError.Reason">
<restriction base="{http://www.w3.org/2001/XMLSchema}string">
<enumeration value="AT_LEAST_ONE_PLACEMENT_OR_INVENTORY_UNIT_REQUIRED"/>
<enumeration value="INVENTORY_CANNOT_BE_TARGETED_AND_EXCLUDED"/>
<enumeration value="INVENTORY_UNIT_CANNOT_BE_TARGETED_IF_ANCESTOR_IS_TARGETED"/>
<enumeration value="INVENTORY_UNIT_CANNOT_BE_TARGETED_IF_ANCESTOR_IS_EXCLUDED"/>
<enumeration value="INVENTORY_UNIT_CANNOT_BE_EXCLUDED_IF_ANCESTOR_IS_EXCLUDED"/>
<enumeration value="EXPLICITLY_TARGETED_INVENTORY_UNIT_CANNOT_BE_TARGETED"/>
<enumeration value="EXPLICITLY_TARGETED_INVENTORY_UNIT_CANNOT_BE_EXCLUDED"/>
<enumeration value="SELF_ONLY_INVENTORY_UNIT_NOT_ALLOWED"/>
<enumeration value="SELF_ONLY_INVENTORY_UNIT_WITHOUT_DESCENDANTS"/>
<enumeration value="YOUTUBE_AUDIENCE_SEGMENTS_CAN_ONLY_BE_TARGETED_WITH_YOUTUBE_SHARED_INVENTORY"/>
<enumeration value="UNKNOWN"/>
</restriction>
</simpleType>
| Enum Constant and Description |
|---|
AT_LEAST_ONE_PLACEMENT_OR_INVENTORY_UNIT_REQUIRED
At least one placement or inventory unit is required
|
EXPLICITLY_TARGETED_INVENTORY_UNIT_CANNOT_BE_EXCLUDED
An explicitly targeted inventory unit cannot be excluded.
|
EXPLICITLY_TARGETED_INVENTORY_UNIT_CANNOT_BE_TARGETED
An explicitly targeted inventory unit cannot be targeted.
|
INVENTORY_CANNOT_BE_TARGETED_AND_EXCLUDED
The same inventory unit or placement cannot be targeted and excluded at
the same time
|
INVENTORY_UNIT_CANNOT_BE_EXCLUDED_IF_ANCESTOR_IS_EXCLUDED
A child inventory unit cannot be excluded if its ancestor inventory unit
is also excluded.
|
INVENTORY_UNIT_CANNOT_BE_TARGETED_IF_ANCESTOR_IS_EXCLUDED
A child inventory unit cannot be targeted if its ancestor inventory unit
is excluded.
|
INVENTORY_UNIT_CANNOT_BE_TARGETED_IF_ANCESTOR_IS_TARGETED
A child inventory unit cannot be targeted if its ancestor inventory unit
is also targeted.
|
SELF_ONLY_INVENTORY_UNIT_NOT_ALLOWED
A landing page-only ad unit cannot be targeted.
|
SELF_ONLY_INVENTORY_UNIT_WITHOUT_DESCENDANTS
A landing page-only ad unit cannot be targeted if it doesn't have any
children.
|
UNKNOWN
The value returned if the actual value is not exposed by the requested API version.
|
YOUTUBE_AUDIENCE_SEGMENTS_CAN_ONLY_BE_TARGETED_WITH_YOUTUBE_SHARED_INVENTORY
Audience segments shared from YouTube can only be targeted with inventory shared
from YouTube for cross selling.
|
| Modifier and Type | Method and Description |
|---|---|
static InventoryTargetingErrorReason |
fromValue(String v) |
String |
value() |
static InventoryTargetingErrorReason |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static InventoryTargetingErrorReason[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final InventoryTargetingErrorReason AT_LEAST_ONE_PLACEMENT_OR_INVENTORY_UNIT_REQUIRED
public static final InventoryTargetingErrorReason INVENTORY_CANNOT_BE_TARGETED_AND_EXCLUDED
public static final InventoryTargetingErrorReason INVENTORY_UNIT_CANNOT_BE_TARGETED_IF_ANCESTOR_IS_TARGETED
public static final InventoryTargetingErrorReason INVENTORY_UNIT_CANNOT_BE_TARGETED_IF_ANCESTOR_IS_EXCLUDED
public static final InventoryTargetingErrorReason INVENTORY_UNIT_CANNOT_BE_EXCLUDED_IF_ANCESTOR_IS_EXCLUDED
public static final InventoryTargetingErrorReason EXPLICITLY_TARGETED_INVENTORY_UNIT_CANNOT_BE_TARGETED
public static final InventoryTargetingErrorReason EXPLICITLY_TARGETED_INVENTORY_UNIT_CANNOT_BE_EXCLUDED
public static final InventoryTargetingErrorReason SELF_ONLY_INVENTORY_UNIT_NOT_ALLOWED
public static final InventoryTargetingErrorReason SELF_ONLY_INVENTORY_UNIT_WITHOUT_DESCENDANTS
public static final InventoryTargetingErrorReason YOUTUBE_AUDIENCE_SEGMENTS_CAN_ONLY_BE_TARGETED_WITH_YOUTUBE_SHARED_INVENTORY
public static final InventoryTargetingErrorReason UNKNOWN
public static InventoryTargetingErrorReason[] values()
for (InventoryTargetingErrorReason c : InventoryTargetingErrorReason.values()) System.out.println(c);
public static InventoryTargetingErrorReason 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 InventoryTargetingErrorReason fromValue(String v)
Copyright © 2018. All Rights Reserved.