public enum BudgetErrorReason extends Enum<BudgetErrorReason>
Java class for BudgetError.Reason.
The following schema fragment specifies the expected content contained within this class.
<simpleType name="BudgetError.Reason">
<restriction base="{http://www.w3.org/2001/XMLSchema}string">
<enumeration value="BUDGET_CANNOT_BE_EXPLICITLY_SHARED"/>
<enumeration value="BUDGET_REMOVED"/>
<enumeration value="BUDGET_ERROR"/>
<enumeration value="BUDGET_IN_USE"/>
<enumeration value="BUDGET_PERIOD_NOT_AVAILABLE"/>
<enumeration value="CANNOT_EDIT_SHARED_BUDGET"/>
<enumeration value="CANNOT_MODIFY_FIELD_OF_IMPLICITLY_SHARED_BUDGET"/>
<enumeration value="CANNOT_UPDATE_BUDGET_TO_IMPLICITLY_SHARED"/>
<enumeration value="CANNOT_UPDATE_BUDGET_TO_EXPLICITLY_SHARED_WITHOUT_NAME"/>
<enumeration value="CANNOT_UPDATE_BUDGET_TO_EXPLICITLY_SHARED"/>
<enumeration value="CANNOT_USE_IMPLICITLY_SHARED_BUDGET_WITH_MULTIPLE_CAMPAIGNS"/>
<enumeration value="DUPLICATE_NAME"/>
<enumeration value="MONEY_AMOUNT_IN_WRONG_CURRENCY"/>
<enumeration value="MONEY_AMOUNT_LESS_THAN_CURRENCY_MINIMUM_CPC"/>
<enumeration value="MONEY_AMOUNT_TOO_LARGE"/>
<enumeration value="NEGATIVE_MONEY_AMOUNT"/>
<enumeration value="NON_MULTIPLE_OF_MINIMUM_CURRENCY_UNIT"/>
</restriction>
</simpleType>
| Enum Constant and Description |
|---|
BUDGET_CANNOT_BE_EXPLICITLY_SHARED
Budgets cannot be shared.
|
BUDGET_ERROR
Default budget error.
|
BUDGET_IN_USE
The budget is associated with at least one campaign, and so the budget cannot be removed.
|
BUDGET_PERIOD_NOT_AVAILABLE
Customer is not whitelisted for this budget period.
|
BUDGET_REMOVED
The requested budget no longer exists.
|
CANNOT_EDIT_SHARED_BUDGET
Customer cannot use CampaignService to edit a shared budget.
|
CANNOT_MODIFY_FIELD_OF_IMPLICITLY_SHARED_BUDGET
This field is not mutable on implicitly shared budgets
|
CANNOT_UPDATE_BUDGET_TO_EXPLICITLY_SHARED
Cannot change an implicitly shared budget to an explicitly shared one.
|
CANNOT_UPDATE_BUDGET_TO_EXPLICITLY_SHARED_WITHOUT_NAME
An implicit budget without a name cannot be changed to explicitly shared budget.
|
CANNOT_UPDATE_BUDGET_TO_IMPLICITLY_SHARED
Cannot change explicitly shared budgets back to implicitly shared ones.
|
CANNOT_USE_IMPLICITLY_SHARED_BUDGET_WITH_MULTIPLE_CAMPAIGNS
Only explicitly shared budgets can be used with multiple campaigns.
|
DUPLICATE_NAME
A budget with this name already exists.
|
MONEY_AMOUNT_IN_WRONG_CURRENCY
A money amount was not in the expected currency.
|
MONEY_AMOUNT_LESS_THAN_CURRENCY_MINIMUM_CPC
A money amount was less than the minimum CPC for currency.
|
MONEY_AMOUNT_TOO_LARGE
A money amount was greater than the maximum allowed.
|
NEGATIVE_MONEY_AMOUNT
A money amount was negative.
|
NON_MULTIPLE_OF_MINIMUM_CURRENCY_UNIT
A money amount was not a multiple of a minimum unit.
|
| Modifier and Type | Method and Description |
|---|---|
static BudgetErrorReason |
fromValue(String v) |
String |
value() |
static BudgetErrorReason |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static BudgetErrorReason[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BudgetErrorReason BUDGET_CANNOT_BE_EXPLICITLY_SHARED
public static final BudgetErrorReason BUDGET_REMOVED
public static final BudgetErrorReason BUDGET_ERROR
public static final BudgetErrorReason BUDGET_IN_USE
public static final BudgetErrorReason BUDGET_PERIOD_NOT_AVAILABLE
public static final BudgetErrorReason CANNOT_EDIT_SHARED_BUDGET
public static final BudgetErrorReason CANNOT_MODIFY_FIELD_OF_IMPLICITLY_SHARED_BUDGET
public static final BudgetErrorReason CANNOT_UPDATE_BUDGET_TO_IMPLICITLY_SHARED
public static final BudgetErrorReason CANNOT_UPDATE_BUDGET_TO_EXPLICITLY_SHARED_WITHOUT_NAME
public static final BudgetErrorReason CANNOT_UPDATE_BUDGET_TO_EXPLICITLY_SHARED
public static final BudgetErrorReason CANNOT_USE_IMPLICITLY_SHARED_BUDGET_WITH_MULTIPLE_CAMPAIGNS
public static final BudgetErrorReason DUPLICATE_NAME
public static final BudgetErrorReason MONEY_AMOUNT_IN_WRONG_CURRENCY
public static final BudgetErrorReason MONEY_AMOUNT_LESS_THAN_CURRENCY_MINIMUM_CPC
public static final BudgetErrorReason MONEY_AMOUNT_TOO_LARGE
public static final BudgetErrorReason NEGATIVE_MONEY_AMOUNT
public static final BudgetErrorReason NON_MULTIPLE_OF_MINIMUM_CURRENCY_UNIT
public static BudgetErrorReason[] values()
for (BudgetErrorReason c : BudgetErrorReason.values()) System.out.println(c);
public static BudgetErrorReason 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 BudgetErrorReason fromValue(String v)
Copyright © 2023. All rights reserved.