public enum TrialErrorReason extends Enum<TrialErrorReason>
Java class for TrialError.Reason.
The following schema fragment specifies the expected content contained within this class.
<simpleType name="TrialError.Reason">
<restriction base="{http://www.w3.org/2001/XMLSchema}string">
<enumeration value="UNKNOWN"/>
<enumeration value="INVALID_STATUS_TRANSITION"/>
<enumeration value="CANNOT_USE_TRIAL_WITH_SHARED_BUDGET"/>
<enumeration value="CANNOT_CREATE_TRIAL_WHEN_CAMPAIGN_HAS_ACTIVE_EXPERIMENTS"/>
<enumeration value="CANNOT_CREATE_TRIAL_FOR_DELETED_BASE_CAMPAIGN"/>
<enumeration value="CANNOT_CREATE_TRIAL_FOR_NON_PROPOSED_DRAFT"/>
<enumeration value="CUSTOMER_CANNOT_CREATE_TRIAL"/>
<enumeration value="CAMPAIGN_CANNOT_CREATE_TRIAL"/>
<enumeration value="NAME_ALREADY_IN_USE"/>
<enumeration value="TRIAL_DURATIONS_MUST_NOT_OVERLAP"/>
<enumeration value="TRIAL_DURATION_MUST_BE_WITHIN_CAMPAIGN_DURATION"/>
</restriction>
</simpleType>
| Enum Constant and Description |
|---|
CAMPAIGN_CANNOT_CREATE_TRIAL
This campaign is not allowed to create a trial.
|
CANNOT_CREATE_TRIAL_FOR_DELETED_BASE_CAMPAIGN
Cannot create a trial for a base campaign, which is deleted.
|
CANNOT_CREATE_TRIAL_FOR_NON_PROPOSED_DRAFT
Cannot create a trial from a draft, which has a status other than proposed.
|
CANNOT_CREATE_TRIAL_WHEN_CAMPAIGN_HAS_ACTIVE_EXPERIMENTS
Cannot create a trial as long as the campaign has a running or scheduled Advertiser Campaign
Experiment.
|
CANNOT_USE_TRIAL_WITH_SHARED_BUDGET
Cannot create a trial from a campaign using an explicitly shared budget.
|
CUSTOMER_CANNOT_CREATE_TRIAL
This customer is not allowed to create a trial.
|
INVALID_STATUS_TRANSITION
Trial status cannot be updated from the current status to the requested target status.
|
NAME_ALREADY_IN_USE
Trying to use a trial name which is already assigned to another campaign or trial.
|
TRIAL_DURATION_MUST_BE_WITHIN_CAMPAIGN_DURATION
All non-archived trials must start and end within their campaign's duration.
|
TRIAL_DURATIONS_MUST_NOT_OVERLAP
Trying to set a trial duration which overlaps with another trial.
|
UNKNOWN
Used for return value only.
|
| Modifier and Type | Method and Description |
|---|---|
static TrialErrorReason |
fromValue(String v) |
String |
value() |
static TrialErrorReason |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TrialErrorReason[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TrialErrorReason UNKNOWN
public static final TrialErrorReason INVALID_STATUS_TRANSITION
public static final TrialErrorReason CANNOT_USE_TRIAL_WITH_SHARED_BUDGET
public static final TrialErrorReason CANNOT_CREATE_TRIAL_WHEN_CAMPAIGN_HAS_ACTIVE_EXPERIMENTS
public static final TrialErrorReason CANNOT_CREATE_TRIAL_FOR_DELETED_BASE_CAMPAIGN
public static final TrialErrorReason CANNOT_CREATE_TRIAL_FOR_NON_PROPOSED_DRAFT
public static final TrialErrorReason CUSTOMER_CANNOT_CREATE_TRIAL
public static final TrialErrorReason CAMPAIGN_CANNOT_CREATE_TRIAL
public static final TrialErrorReason NAME_ALREADY_IN_USE
public static final TrialErrorReason TRIAL_DURATIONS_MUST_NOT_OVERLAP
public static final TrialErrorReason TRIAL_DURATION_MUST_BE_WITHIN_CAMPAIGN_DURATION
public static TrialErrorReason[] values()
for (TrialErrorReason c : TrialErrorReason.values()) System.out.println(c);
public static TrialErrorReason 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 TrialErrorReason fromValue(String v)
Copyright © 2023. All rights reserved.