public enum AdGroupAdErrorReason extends Enum<AdGroupAdErrorReason>
Java class for AdGroupAdError.Reason.
The following schema fragment specifies the expected content contained within this class.
<simpleType name="AdGroupAdError.Reason">
<restriction base="{http://www.w3.org/2001/XMLSchema}string">
<enumeration value="AD_GROUP_AD_LABEL_DOES_NOT_EXIST"/>
<enumeration value="AD_GROUP_AD_LABEL_ALREADY_EXISTS"/>
<enumeration value="AD_NOT_UNDER_ADGROUP"/>
<enumeration value="CANNOT_OPERATE_ON_REMOVED_ADGROUPAD"/>
<enumeration value="CANNOT_CREATE_DEPRECATED_ADS"/>
<enumeration value="CANNOT_CREATE_TEXT_ADS"/>
<enumeration value="EMPTY_FIELD"/>
<enumeration value="ENTITY_REFERENCED_IN_MULTIPLE_OPS"/>
<enumeration value="UNSUPPORTED_OPERATION"/>
</restriction>
</simpleType>
| Enum Constant and Description |
|---|
AD_GROUP_AD_LABEL_ALREADY_EXISTS
The label has already been attached to the adgroup ad.
|
AD_GROUP_AD_LABEL_DOES_NOT_EXIST
No link found between the adgroup ad and the label.
|
AD_NOT_UNDER_ADGROUP
The specified ad was not found in the adgroup
|
CANNOT_CREATE_DEPRECATED_ADS
An ad of this type is deprecated and cannot be created.
|
CANNOT_CREATE_TEXT_ADS
Text ads are deprecated and cannot be created.
|
CANNOT_OPERATE_ON_REMOVED_ADGROUPAD
Removed ads may not be modified
|
EMPTY_FIELD
A required field was not specified or is an empty string.
|
ENTITY_REFERENCED_IN_MULTIPLE_OPS
An ad may only be modified once per call
|
UNSUPPORTED_OPERATION
The specified operation is not supported.
|
| Modifier and Type | Method and Description |
|---|---|
static AdGroupAdErrorReason |
fromValue(String v) |
String |
value() |
static AdGroupAdErrorReason |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AdGroupAdErrorReason[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AdGroupAdErrorReason AD_GROUP_AD_LABEL_DOES_NOT_EXIST
public static final AdGroupAdErrorReason AD_GROUP_AD_LABEL_ALREADY_EXISTS
public static final AdGroupAdErrorReason AD_NOT_UNDER_ADGROUP
public static final AdGroupAdErrorReason CANNOT_OPERATE_ON_REMOVED_ADGROUPAD
public static final AdGroupAdErrorReason CANNOT_CREATE_DEPRECATED_ADS
public static final AdGroupAdErrorReason CANNOT_CREATE_TEXT_ADS
public static final AdGroupAdErrorReason EMPTY_FIELD
public static final AdGroupAdErrorReason ENTITY_REFERENCED_IN_MULTIPLE_OPS
public static final AdGroupAdErrorReason UNSUPPORTED_OPERATION
public static AdGroupAdErrorReason[] values()
for (AdGroupAdErrorReason c : AdGroupAdErrorReason.values()) System.out.println(c);
public static AdGroupAdErrorReason 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 AdGroupAdErrorReason fromValue(String v)
Copyright © 2023. All rights reserved.