Enum CampaignBudgetErrorEnum.CampaignBudgetError
- java.lang.Object
-
- java.lang.Enum<CampaignBudgetErrorEnum.CampaignBudgetError>
-
- com.google.ads.googleads.v10.errors.CampaignBudgetErrorEnum.CampaignBudgetError
-
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,java.io.Serializable,java.lang.Comparable<CampaignBudgetErrorEnum.CampaignBudgetError>
- Enclosing class:
- CampaignBudgetErrorEnum
public static enum CampaignBudgetErrorEnum.CampaignBudgetError extends java.lang.Enum<CampaignBudgetErrorEnum.CampaignBudgetError> implements com.google.protobuf.ProtocolMessageEnum
Enum describing possible campaign budget errors.
Protobuf enumgoogle.ads.googleads.v10.errors.CampaignBudgetErrorEnum.CampaignBudgetError
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CAMPAIGN_BUDGET_CANNOT_BE_SHAREDThe campaign budget cannot be shared.CAMPAIGN_BUDGET_IN_USEThe campaign budget is associated with at least one campaign, and so the campaign budget cannot be removed.CAMPAIGN_BUDGET_PERIOD_NOT_AVAILABLECustomer is not on the allow-list for this campaign budget period.CAMPAIGN_BUDGET_REMOVEDThe requested campaign budget no longer exists.CANNOT_MODIFY_FIELD_OF_IMPLICITLY_SHARED_CAMPAIGN_BUDGETThis field is not mutable on implicitly shared campaign budgetsCANNOT_UPDATE_CAMPAIGN_BUDGET_TO_EXPLICITLY_SHAREDCannot change an implicitly shared campaign budget to an explicitly shared one.CANNOT_UPDATE_CAMPAIGN_BUDGET_TO_EXPLICITLY_SHARED_WITHOUT_NAMEAn implicit campaign budget without a name cannot be changed to explicitly shared campaign budget.CANNOT_UPDATE_CAMPAIGN_BUDGET_TO_IMPLICITLY_SHAREDCannot change explicitly shared campaign budgets back to implicitly shared ones.CANNOT_USE_IMPLICITLY_SHARED_CAMPAIGN_BUDGET_WITH_MULTIPLE_CAMPAIGNSOnly explicitly shared campaign budgets can be used with multiple campaigns.DUPLICATE_NAMEA campaign budget with this name already exists.INVALID_PERIODThe period of the budget is not allowed.MONEY_AMOUNT_IN_WRONG_CURRENCYA money amount was not in the expected currency.MONEY_AMOUNT_LESS_THAN_CURRENCY_MINIMUM_CPCA money amount was less than the minimum CPC for currency.MONEY_AMOUNT_TOO_LARGEA money amount was greater than the maximum allowed.NEGATIVE_MONEY_AMOUNTA money amount was negative.NON_MULTIPLE_OF_MINIMUM_CURRENCY_UNITA money amount was not a multiple of a minimum unit.TOTAL_BUDGET_AMOUNT_MUST_BE_UNSET_FOR_BUDGET_PERIOD_DAILYTotal budget amount must be unset when BudgetPeriod is DAILY.UNKNOWNThe received error code is not known in this version.UNRECOGNIZEDUNSPECIFIEDEnum unspecified.
-
Field Summary
Fields Modifier and Type Field Description static intCAMPAIGN_BUDGET_CANNOT_BE_SHARED_VALUEThe campaign budget cannot be shared.static intCAMPAIGN_BUDGET_IN_USE_VALUEThe campaign budget is associated with at least one campaign, and so the campaign budget cannot be removed.static intCAMPAIGN_BUDGET_PERIOD_NOT_AVAILABLE_VALUECustomer is not on the allow-list for this campaign budget period.static intCAMPAIGN_BUDGET_REMOVED_VALUEThe requested campaign budget no longer exists.static intCANNOT_MODIFY_FIELD_OF_IMPLICITLY_SHARED_CAMPAIGN_BUDGET_VALUEThis field is not mutable on implicitly shared campaign budgetsstatic intCANNOT_UPDATE_CAMPAIGN_BUDGET_TO_EXPLICITLY_SHARED_VALUECannot change an implicitly shared campaign budget to an explicitly shared one.static intCANNOT_UPDATE_CAMPAIGN_BUDGET_TO_EXPLICITLY_SHARED_WITHOUT_NAME_VALUEAn implicit campaign budget without a name cannot be changed to explicitly shared campaign budget.static intCANNOT_UPDATE_CAMPAIGN_BUDGET_TO_IMPLICITLY_SHARED_VALUECannot change explicitly shared campaign budgets back to implicitly shared ones.static intCANNOT_USE_IMPLICITLY_SHARED_CAMPAIGN_BUDGET_WITH_MULTIPLE_CAMPAIGNS_VALUEOnly explicitly shared campaign budgets can be used with multiple campaigns.static intDUPLICATE_NAME_VALUEA campaign budget with this name already exists.static intINVALID_PERIOD_VALUEThe period of the budget is not allowed.static intMONEY_AMOUNT_IN_WRONG_CURRENCY_VALUEA money amount was not in the expected currency.static intMONEY_AMOUNT_LESS_THAN_CURRENCY_MINIMUM_CPC_VALUEA money amount was less than the minimum CPC for currency.static intMONEY_AMOUNT_TOO_LARGE_VALUEA money amount was greater than the maximum allowed.static intNEGATIVE_MONEY_AMOUNT_VALUEA money amount was negative.static intNON_MULTIPLE_OF_MINIMUM_CURRENCY_UNIT_VALUEA money amount was not a multiple of a minimum unit.static intTOTAL_BUDGET_AMOUNT_MUST_BE_UNSET_FOR_BUDGET_PERIOD_DAILY_VALUETotal budget amount must be unset when BudgetPeriod is DAILY.static intUNKNOWN_VALUEThe received error code is not known in this version.static intUNSPECIFIED_VALUEEnum unspecified.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static CampaignBudgetErrorEnum.CampaignBudgetErrorforNumber(int value)static com.google.protobuf.Descriptors.EnumDescriptorgetDescriptor()com.google.protobuf.Descriptors.EnumDescriptorgetDescriptorForType()intgetNumber()com.google.protobuf.Descriptors.EnumValueDescriptorgetValueDescriptor()static com.google.protobuf.Internal.EnumLiteMap<CampaignBudgetErrorEnum.CampaignBudgetError>internalGetValueMap()static CampaignBudgetErrorEnum.CampaignBudgetErrorvalueOf(int value)Deprecated.static CampaignBudgetErrorEnum.CampaignBudgetErrorvalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)Returns the enum constant of this type with the specified name.static CampaignBudgetErrorEnum.CampaignBudgetErrorvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static CampaignBudgetErrorEnum.CampaignBudgetError[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UNSPECIFIED
public static final CampaignBudgetErrorEnum.CampaignBudgetError UNSPECIFIED
Enum unspecified.
UNSPECIFIED = 0;
-
UNKNOWN
public static final CampaignBudgetErrorEnum.CampaignBudgetError UNKNOWN
The received error code is not known in this version.
UNKNOWN = 1;
-
CAMPAIGN_BUDGET_CANNOT_BE_SHARED
public static final CampaignBudgetErrorEnum.CampaignBudgetError CAMPAIGN_BUDGET_CANNOT_BE_SHARED
The campaign budget cannot be shared.
CAMPAIGN_BUDGET_CANNOT_BE_SHARED = 17;
-
CAMPAIGN_BUDGET_REMOVED
public static final CampaignBudgetErrorEnum.CampaignBudgetError CAMPAIGN_BUDGET_REMOVED
The requested campaign budget no longer exists.
CAMPAIGN_BUDGET_REMOVED = 2;
-
CAMPAIGN_BUDGET_IN_USE
public static final CampaignBudgetErrorEnum.CampaignBudgetError CAMPAIGN_BUDGET_IN_USE
The campaign budget is associated with at least one campaign, and so the campaign budget cannot be removed.
CAMPAIGN_BUDGET_IN_USE = 3;
-
CAMPAIGN_BUDGET_PERIOD_NOT_AVAILABLE
public static final CampaignBudgetErrorEnum.CampaignBudgetError CAMPAIGN_BUDGET_PERIOD_NOT_AVAILABLE
Customer is not on the allow-list for this campaign budget period.
CAMPAIGN_BUDGET_PERIOD_NOT_AVAILABLE = 4;
-
CANNOT_MODIFY_FIELD_OF_IMPLICITLY_SHARED_CAMPAIGN_BUDGET
public static final CampaignBudgetErrorEnum.CampaignBudgetError CANNOT_MODIFY_FIELD_OF_IMPLICITLY_SHARED_CAMPAIGN_BUDGET
This field is not mutable on implicitly shared campaign budgets
CANNOT_MODIFY_FIELD_OF_IMPLICITLY_SHARED_CAMPAIGN_BUDGET = 6;
-
CANNOT_UPDATE_CAMPAIGN_BUDGET_TO_IMPLICITLY_SHARED
public static final CampaignBudgetErrorEnum.CampaignBudgetError CANNOT_UPDATE_CAMPAIGN_BUDGET_TO_IMPLICITLY_SHARED
Cannot change explicitly shared campaign budgets back to implicitly shared ones.
CANNOT_UPDATE_CAMPAIGN_BUDGET_TO_IMPLICITLY_SHARED = 7;
-
CANNOT_UPDATE_CAMPAIGN_BUDGET_TO_EXPLICITLY_SHARED_WITHOUT_NAME
public static final CampaignBudgetErrorEnum.CampaignBudgetError CANNOT_UPDATE_CAMPAIGN_BUDGET_TO_EXPLICITLY_SHARED_WITHOUT_NAME
An implicit campaign budget without a name cannot be changed to explicitly shared campaign budget.
CANNOT_UPDATE_CAMPAIGN_BUDGET_TO_EXPLICITLY_SHARED_WITHOUT_NAME = 8;
-
CANNOT_UPDATE_CAMPAIGN_BUDGET_TO_EXPLICITLY_SHARED
public static final CampaignBudgetErrorEnum.CampaignBudgetError CANNOT_UPDATE_CAMPAIGN_BUDGET_TO_EXPLICITLY_SHARED
Cannot change an implicitly shared campaign budget to an explicitly shared one.
CANNOT_UPDATE_CAMPAIGN_BUDGET_TO_EXPLICITLY_SHARED = 9;
-
CANNOT_USE_IMPLICITLY_SHARED_CAMPAIGN_BUDGET_WITH_MULTIPLE_CAMPAIGNS
public static final CampaignBudgetErrorEnum.CampaignBudgetError CANNOT_USE_IMPLICITLY_SHARED_CAMPAIGN_BUDGET_WITH_MULTIPLE_CAMPAIGNS
Only explicitly shared campaign budgets can be used with multiple campaigns.
CANNOT_USE_IMPLICITLY_SHARED_CAMPAIGN_BUDGET_WITH_MULTIPLE_CAMPAIGNS = 10;
-
DUPLICATE_NAME
public static final CampaignBudgetErrorEnum.CampaignBudgetError DUPLICATE_NAME
A campaign budget with this name already exists.
DUPLICATE_NAME = 11;
-
MONEY_AMOUNT_IN_WRONG_CURRENCY
public static final CampaignBudgetErrorEnum.CampaignBudgetError MONEY_AMOUNT_IN_WRONG_CURRENCY
A money amount was not in the expected currency.
MONEY_AMOUNT_IN_WRONG_CURRENCY = 12;
-
MONEY_AMOUNT_LESS_THAN_CURRENCY_MINIMUM_CPC
public static final CampaignBudgetErrorEnum.CampaignBudgetError MONEY_AMOUNT_LESS_THAN_CURRENCY_MINIMUM_CPC
A money amount was less than the minimum CPC for currency.
MONEY_AMOUNT_LESS_THAN_CURRENCY_MINIMUM_CPC = 13;
-
MONEY_AMOUNT_TOO_LARGE
public static final CampaignBudgetErrorEnum.CampaignBudgetError MONEY_AMOUNT_TOO_LARGE
A money amount was greater than the maximum allowed.
MONEY_AMOUNT_TOO_LARGE = 14;
-
NEGATIVE_MONEY_AMOUNT
public static final CampaignBudgetErrorEnum.CampaignBudgetError NEGATIVE_MONEY_AMOUNT
A money amount was negative.
NEGATIVE_MONEY_AMOUNT = 15;
-
NON_MULTIPLE_OF_MINIMUM_CURRENCY_UNIT
public static final CampaignBudgetErrorEnum.CampaignBudgetError NON_MULTIPLE_OF_MINIMUM_CURRENCY_UNIT
A money amount was not a multiple of a minimum unit.
NON_MULTIPLE_OF_MINIMUM_CURRENCY_UNIT = 16;
-
TOTAL_BUDGET_AMOUNT_MUST_BE_UNSET_FOR_BUDGET_PERIOD_DAILY
public static final CampaignBudgetErrorEnum.CampaignBudgetError TOTAL_BUDGET_AMOUNT_MUST_BE_UNSET_FOR_BUDGET_PERIOD_DAILY
Total budget amount must be unset when BudgetPeriod is DAILY.
TOTAL_BUDGET_AMOUNT_MUST_BE_UNSET_FOR_BUDGET_PERIOD_DAILY = 18;
-
INVALID_PERIOD
public static final CampaignBudgetErrorEnum.CampaignBudgetError INVALID_PERIOD
The period of the budget is not allowed.
INVALID_PERIOD = 19;
-
UNRECOGNIZED
public static final CampaignBudgetErrorEnum.CampaignBudgetError UNRECOGNIZED
-
-
Field Detail
-
UNSPECIFIED_VALUE
public static final int UNSPECIFIED_VALUE
Enum unspecified.
UNSPECIFIED = 0;- See Also:
- Constant Field Values
-
UNKNOWN_VALUE
public static final int UNKNOWN_VALUE
The received error code is not known in this version.
UNKNOWN = 1;- See Also:
- Constant Field Values
-
CAMPAIGN_BUDGET_CANNOT_BE_SHARED_VALUE
public static final int CAMPAIGN_BUDGET_CANNOT_BE_SHARED_VALUE
The campaign budget cannot be shared.
CAMPAIGN_BUDGET_CANNOT_BE_SHARED = 17;- See Also:
- Constant Field Values
-
CAMPAIGN_BUDGET_REMOVED_VALUE
public static final int CAMPAIGN_BUDGET_REMOVED_VALUE
The requested campaign budget no longer exists.
CAMPAIGN_BUDGET_REMOVED = 2;- See Also:
- Constant Field Values
-
CAMPAIGN_BUDGET_IN_USE_VALUE
public static final int CAMPAIGN_BUDGET_IN_USE_VALUE
The campaign budget is associated with at least one campaign, and so the campaign budget cannot be removed.
CAMPAIGN_BUDGET_IN_USE = 3;- See Also:
- Constant Field Values
-
CAMPAIGN_BUDGET_PERIOD_NOT_AVAILABLE_VALUE
public static final int CAMPAIGN_BUDGET_PERIOD_NOT_AVAILABLE_VALUE
Customer is not on the allow-list for this campaign budget period.
CAMPAIGN_BUDGET_PERIOD_NOT_AVAILABLE = 4;- See Also:
- Constant Field Values
-
CANNOT_MODIFY_FIELD_OF_IMPLICITLY_SHARED_CAMPAIGN_BUDGET_VALUE
public static final int CANNOT_MODIFY_FIELD_OF_IMPLICITLY_SHARED_CAMPAIGN_BUDGET_VALUE
This field is not mutable on implicitly shared campaign budgets
CANNOT_MODIFY_FIELD_OF_IMPLICITLY_SHARED_CAMPAIGN_BUDGET = 6;- See Also:
- Constant Field Values
-
CANNOT_UPDATE_CAMPAIGN_BUDGET_TO_IMPLICITLY_SHARED_VALUE
public static final int CANNOT_UPDATE_CAMPAIGN_BUDGET_TO_IMPLICITLY_SHARED_VALUE
Cannot change explicitly shared campaign budgets back to implicitly shared ones.
CANNOT_UPDATE_CAMPAIGN_BUDGET_TO_IMPLICITLY_SHARED = 7;- See Also:
- Constant Field Values
-
CANNOT_UPDATE_CAMPAIGN_BUDGET_TO_EXPLICITLY_SHARED_WITHOUT_NAME_VALUE
public static final int CANNOT_UPDATE_CAMPAIGN_BUDGET_TO_EXPLICITLY_SHARED_WITHOUT_NAME_VALUE
An implicit campaign budget without a name cannot be changed to explicitly shared campaign budget.
CANNOT_UPDATE_CAMPAIGN_BUDGET_TO_EXPLICITLY_SHARED_WITHOUT_NAME = 8;- See Also:
- Constant Field Values
-
CANNOT_UPDATE_CAMPAIGN_BUDGET_TO_EXPLICITLY_SHARED_VALUE
public static final int CANNOT_UPDATE_CAMPAIGN_BUDGET_TO_EXPLICITLY_SHARED_VALUE
Cannot change an implicitly shared campaign budget to an explicitly shared one.
CANNOT_UPDATE_CAMPAIGN_BUDGET_TO_EXPLICITLY_SHARED = 9;- See Also:
- Constant Field Values
-
CANNOT_USE_IMPLICITLY_SHARED_CAMPAIGN_BUDGET_WITH_MULTIPLE_CAMPAIGNS_VALUE
public static final int CANNOT_USE_IMPLICITLY_SHARED_CAMPAIGN_BUDGET_WITH_MULTIPLE_CAMPAIGNS_VALUE
Only explicitly shared campaign budgets can be used with multiple campaigns.
CANNOT_USE_IMPLICITLY_SHARED_CAMPAIGN_BUDGET_WITH_MULTIPLE_CAMPAIGNS = 10;- See Also:
- Constant Field Values
-
DUPLICATE_NAME_VALUE
public static final int DUPLICATE_NAME_VALUE
A campaign budget with this name already exists.
DUPLICATE_NAME = 11;- See Also:
- Constant Field Values
-
MONEY_AMOUNT_IN_WRONG_CURRENCY_VALUE
public static final int MONEY_AMOUNT_IN_WRONG_CURRENCY_VALUE
A money amount was not in the expected currency.
MONEY_AMOUNT_IN_WRONG_CURRENCY = 12;- See Also:
- Constant Field Values
-
MONEY_AMOUNT_LESS_THAN_CURRENCY_MINIMUM_CPC_VALUE
public static final int MONEY_AMOUNT_LESS_THAN_CURRENCY_MINIMUM_CPC_VALUE
A money amount was less than the minimum CPC for currency.
MONEY_AMOUNT_LESS_THAN_CURRENCY_MINIMUM_CPC = 13;- See Also:
- Constant Field Values
-
MONEY_AMOUNT_TOO_LARGE_VALUE
public static final int MONEY_AMOUNT_TOO_LARGE_VALUE
A money amount was greater than the maximum allowed.
MONEY_AMOUNT_TOO_LARGE = 14;- See Also:
- Constant Field Values
-
NEGATIVE_MONEY_AMOUNT_VALUE
public static final int NEGATIVE_MONEY_AMOUNT_VALUE
A money amount was negative.
NEGATIVE_MONEY_AMOUNT = 15;- See Also:
- Constant Field Values
-
NON_MULTIPLE_OF_MINIMUM_CURRENCY_UNIT_VALUE
public static final int NON_MULTIPLE_OF_MINIMUM_CURRENCY_UNIT_VALUE
A money amount was not a multiple of a minimum unit.
NON_MULTIPLE_OF_MINIMUM_CURRENCY_UNIT = 16;- See Also:
- Constant Field Values
-
TOTAL_BUDGET_AMOUNT_MUST_BE_UNSET_FOR_BUDGET_PERIOD_DAILY_VALUE
public static final int TOTAL_BUDGET_AMOUNT_MUST_BE_UNSET_FOR_BUDGET_PERIOD_DAILY_VALUE
Total budget amount must be unset when BudgetPeriod is DAILY.
TOTAL_BUDGET_AMOUNT_MUST_BE_UNSET_FOR_BUDGET_PERIOD_DAILY = 18;- See Also:
- Constant Field Values
-
INVALID_PERIOD_VALUE
public static final int INVALID_PERIOD_VALUE
The period of the budget is not allowed.
INVALID_PERIOD = 19;- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static CampaignBudgetErrorEnum.CampaignBudgetError[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (CampaignBudgetErrorEnum.CampaignBudgetError c : CampaignBudgetErrorEnum.CampaignBudgetError.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CampaignBudgetErrorEnum.CampaignBudgetError valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
getNumber
public final int getNumber()
- Specified by:
getNumberin interfacecom.google.protobuf.Internal.EnumLite- Specified by:
getNumberin interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
@Deprecated public static CampaignBudgetErrorEnum.CampaignBudgetError valueOf(int value)
Deprecated.Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
value- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
forNumber
public static CampaignBudgetErrorEnum.CampaignBudgetError forNumber(int value)
- Parameters:
value- The numeric wire value of the corresponding enum entry.- Returns:
- The enum associated with the given numeric wire value.
-
internalGetValueMap
public static com.google.protobuf.Internal.EnumLiteMap<CampaignBudgetErrorEnum.CampaignBudgetError> internalGetValueMap()
-
getValueDescriptor
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
- Specified by:
getValueDescriptorin interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptor
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
-
valueOf
public static CampaignBudgetErrorEnum.CampaignBudgetError valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
desc- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
-