public enum AdParamErrorReason extends Enum<AdParamErrorReason>
Java class for AdParamError.Reason.
The following schema fragment specifies the expected content contained within this class.
<simpleType name="AdParamError.Reason">
<restriction base="{http://www.w3.org/2001/XMLSchema}string">
<enumeration value="AD_PARAM_CANNOT_BE_SPECIFIED_MULTIPLE_TIMES"/>
<enumeration value="AD_PARAM_DOES_NOT_EXIST"/>
<enumeration value="CRITERION_SPECIFIED_MUST_BE_KEYWORD"/>
<enumeration value="INVALID_ADGROUP_CRITERION_SPECIFIED"/>
<enumeration value="INVALID_INSERTION_TEXT_FORMAT"/>
<enumeration value="MUST_SPECIFY_ADGROUP_ID"/>
<enumeration value="UNKNOWN"/>
</restriction>
</simpleType>
| Enum Constant and Description |
|---|
AD_PARAM_CANNOT_BE_SPECIFIED_MULTIPLE_TIMES
The same ad param cannot be specified in multiple operations
|
AD_PARAM_DOES_NOT_EXIST
Specified AdParam does not exist
|
CRITERION_SPECIFIED_MUST_BE_KEYWORD
Specified criterion is not a keyword
|
INVALID_ADGROUP_CRITERION_SPECIFIED
The (AdGroupId,CriterionId) is invalid
|
INVALID_INSERTION_TEXT_FORMAT
The insertion text is invalid
|
MUST_SPECIFY_ADGROUP_ID
Must specify AdGroupId in selector
|
UNKNOWN
Used for return value only.
|
| Modifier and Type | Method and Description |
|---|---|
static AdParamErrorReason |
fromValue(String v) |
String |
value() |
static AdParamErrorReason |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AdParamErrorReason[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AdParamErrorReason AD_PARAM_CANNOT_BE_SPECIFIED_MULTIPLE_TIMES
public static final AdParamErrorReason AD_PARAM_DOES_NOT_EXIST
public static final AdParamErrorReason CRITERION_SPECIFIED_MUST_BE_KEYWORD
public static final AdParamErrorReason INVALID_ADGROUP_CRITERION_SPECIFIED
public static final AdParamErrorReason INVALID_INSERTION_TEXT_FORMAT
public static final AdParamErrorReason MUST_SPECIFY_ADGROUP_ID
public static final AdParamErrorReason UNKNOWN
public static AdParamErrorReason[] values()
for (AdParamErrorReason c : AdParamErrorReason.values()) System.out.println(c);
public static AdParamErrorReason 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 AdParamErrorReason fromValue(String v)
Copyright © 2023. All rights reserved.