Enum 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 enum google.ads.googleads.v10.errors.CampaignBudgetErrorEnum.CampaignBudgetError
    • Enum Constant Detail

      • 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;
      • 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;
      • 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;
    • 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 name
        java.lang.NullPointerException - if the argument is null
      • getNumber

        public final int getNumber()
        Specified by:
        getNumber in interface com.google.protobuf.Internal.EnumLite
        Specified by:
        getNumber in interface com.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 name
        java.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.
      • getValueDescriptor

        public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
        Specified by:
        getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnum
      • getDescriptorForType

        public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.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 name
        java.lang.NullPointerException - if the argument is null