public enum TrafficEstimatorErrorReason extends Enum<TrafficEstimatorErrorReason>
Java class for TrafficEstimatorError.Reason.
The following schema fragment specifies the expected content contained within this class.
<simpleType name="TrafficEstimatorError.Reason">
<restriction base="{http://www.w3.org/2001/XMLSchema}string">
<enumeration value="NO_CAMPAIGN_FOR_AD_GROUP_ESTIMATE_REQUEST"/>
<enumeration value="NO_AD_GROUP_FOR_KEYWORD_ESTIMATE_REQUEST"/>
<enumeration value="NO_MAX_CPC_FOR_KEYWORD_ESTIMATE_REQUEST"/>
<enumeration value="TOO_MANY_KEYWORD_ESTIMATE_REQUESTS"/>
<enumeration value="TOO_MANY_CAMPAIGN_ESTIMATE_REQUESTS"/>
<enumeration value="TOO_MANY_ADGROUP_ESTIMATE_REQUESTS"/>
<enumeration value="TOO_MANY_TARGETS"/>
<enumeration value="KEYWORD_TOO_LONG"/>
<enumeration value="KEYWORD_CONTAINS_BROAD_MATCH_MODIFIERS"/>
<enumeration value="INVALID_INPUT"/>
<enumeration value="SERVICE_UNAVAILABLE"/>
</restriction>
</simpleType>
| Enum Constant and Description |
|---|
INVALID_INPUT
When an unexpected error occurs.
|
KEYWORD_CONTAINS_BROAD_MATCH_MODIFIERS
Request contains a keyword that contains broad match modifiers.
|
KEYWORD_TOO_LONG
Request contains a keyword that is too long for backends to handle.
|
NO_AD_GROUP_FOR_KEYWORD_ESTIMATE_REQUEST
When the request with
null adgroup ID in AdGroupEstimateRequest contains a
KeywordEstimateRequest with an ID. |
NO_CAMPAIGN_FOR_AD_GROUP_ESTIMATE_REQUEST
When the request with
null campaign ID in CampaignEstimateRequest contains an
AdGroupEstimateRequest with an ID. |
NO_MAX_CPC_FOR_KEYWORD_ESTIMATE_REQUEST
All
KeywordEstimateRequest items should have maxCpc associated with them. |
SERVICE_UNAVAILABLE
When backend service calls fail.
|
TOO_MANY_ADGROUP_ESTIMATE_REQUESTS
When there are more
AdGroupEstimateRequests in the request than
TrafficEstimatorService allows. |
TOO_MANY_CAMPAIGN_ESTIMATE_REQUESTS
When there are more
CampaignEstimateRequests in the request than
TrafficEstimatorService allows. |
TOO_MANY_KEYWORD_ESTIMATE_REQUESTS
When there are more
KeywordEstimateRequests in the request than
TrafficEstimatorService allows. |
TOO_MANY_TARGETS
When there are more targets in the request than TrafficEstimatorService allows.
|
| Modifier and Type | Method and Description |
|---|---|
static TrafficEstimatorErrorReason |
fromValue(String v) |
String |
value() |
static TrafficEstimatorErrorReason |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TrafficEstimatorErrorReason[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TrafficEstimatorErrorReason NO_CAMPAIGN_FOR_AD_GROUP_ESTIMATE_REQUEST
null campaign ID in CampaignEstimateRequest contains an
AdGroupEstimateRequest with an ID.public static final TrafficEstimatorErrorReason NO_AD_GROUP_FOR_KEYWORD_ESTIMATE_REQUEST
null adgroup ID in AdGroupEstimateRequest contains a
KeywordEstimateRequest with an ID.public static final TrafficEstimatorErrorReason NO_MAX_CPC_FOR_KEYWORD_ESTIMATE_REQUEST
KeywordEstimateRequest items should have maxCpc associated with them.public static final TrafficEstimatorErrorReason TOO_MANY_KEYWORD_ESTIMATE_REQUESTS
KeywordEstimateRequests in the request than
TrafficEstimatorService allows.public static final TrafficEstimatorErrorReason TOO_MANY_CAMPAIGN_ESTIMATE_REQUESTS
CampaignEstimateRequests in the request than
TrafficEstimatorService allows.public static final TrafficEstimatorErrorReason TOO_MANY_ADGROUP_ESTIMATE_REQUESTS
AdGroupEstimateRequests in the request than
TrafficEstimatorService allows.public static final TrafficEstimatorErrorReason TOO_MANY_TARGETS
CampaignEstimateRequest for more information about this error.public static final TrafficEstimatorErrorReason KEYWORD_TOO_LONG
public static final TrafficEstimatorErrorReason KEYWORD_CONTAINS_BROAD_MATCH_MODIFIERS
public static final TrafficEstimatorErrorReason INVALID_INPUT
public static final TrafficEstimatorErrorReason SERVICE_UNAVAILABLE
public static TrafficEstimatorErrorReason[] values()
for (TrafficEstimatorErrorReason c : TrafficEstimatorErrorReason.values()) System.out.println(c);
public static TrafficEstimatorErrorReason 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 TrafficEstimatorErrorReason fromValue(String v)
Copyright © 2023. All rights reserved.