public enum AdSharingErrorReason extends Enum<AdSharingErrorReason>
Java class for AdSharingError.Reason.
The following schema fragment specifies the expected content contained within this class.
<simpleType name="AdSharingError.Reason">
<restriction base="{http://www.w3.org/2001/XMLSchema}string">
<enumeration value="AD_GROUP_ALREADY_CONTAINS_AD"/>
<enumeration value="INCOMPATIBLE_AD_UNDER_AD_GROUP"/>
<enumeration value="CANNOT_SHARE_INACTIVE_AD"/>
</restriction>
</simpleType>
| Enum Constant and Description |
|---|
AD_GROUP_ALREADY_CONTAINS_AD
Error resulting in attempting to add an Ad to an AdGroup that already contains the Ad.
|
CANNOT_SHARE_INACTIVE_AD
Cannot add AdGroupAd on inactive Ad.
|
INCOMPATIBLE_AD_UNDER_AD_GROUP
Ad is not compatible with the AdGroup it is being shared with.
|
| Modifier and Type | Method and Description |
|---|---|
static AdSharingErrorReason |
fromValue(String v) |
String |
value() |
static AdSharingErrorReason |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AdSharingErrorReason[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AdSharingErrorReason AD_GROUP_ALREADY_CONTAINS_AD
public static final AdSharingErrorReason INCOMPATIBLE_AD_UNDER_AD_GROUP
#sharedAdError.public static final AdSharingErrorReason CANNOT_SHARE_INACTIVE_AD
public static AdSharingErrorReason[] values()
for (AdSharingErrorReason c : AdSharingErrorReason.values()) System.out.println(c);
public static AdSharingErrorReason 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 AdSharingErrorReason fromValue(String v)
Copyright © 2023. All rights reserved.