Enum RecommendationErrorEnum.RecommendationError

  • All Implemented Interfaces:
    com.google.protobuf.Internal.EnumLite, com.google.protobuf.ProtocolMessageEnum, java.io.Serializable, java.lang.Comparable<RecommendationErrorEnum.RecommendationError>
    Enclosing class:
    RecommendationErrorEnum

    public static enum RecommendationErrorEnum.RecommendationError
    extends java.lang.Enum<RecommendationErrorEnum.RecommendationError>
    implements com.google.protobuf.ProtocolMessageEnum
     Enum describing possible errors from applying a recommendation.
     
    Protobuf enum google.ads.googleads.v13.errors.RecommendationErrorEnum.RecommendationError
    • 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
      • BUDGET_AMOUNT_TOO_SMALL_VALUE

        public static final int BUDGET_AMOUNT_TOO_SMALL_VALUE
         The specified budget amount is too low for example, lower than minimum
         currency unit or lower than ad group minimum cost-per-click.
         
        BUDGET_AMOUNT_TOO_SMALL = 2;
        See Also:
        Constant Field Values
      • BUDGET_AMOUNT_TOO_LARGE_VALUE

        public static final int BUDGET_AMOUNT_TOO_LARGE_VALUE
         The specified budget amount is too large.
         
        BUDGET_AMOUNT_TOO_LARGE = 3;
        See Also:
        Constant Field Values
      • INVALID_BUDGET_AMOUNT_VALUE

        public static final int INVALID_BUDGET_AMOUNT_VALUE
         The specified budget amount is not a valid amount, for example, not a
         multiple of minimum currency unit.
         
        INVALID_BUDGET_AMOUNT = 4;
        See Also:
        Constant Field Values
      • POLICY_ERROR_VALUE

        public static final int POLICY_ERROR_VALUE
         The specified keyword or ad violates ad policy.
         
        POLICY_ERROR = 5;
        See Also:
        Constant Field Values
      • INVALID_BID_AMOUNT_VALUE

        public static final int INVALID_BID_AMOUNT_VALUE
         The specified bid amount is not valid, for example, too many fractional
         digits, or negative amount.
         
        INVALID_BID_AMOUNT = 6;
        See Also:
        Constant Field Values
      • ADGROUP_KEYWORD_LIMIT_VALUE

        public static final int ADGROUP_KEYWORD_LIMIT_VALUE
         The number of keywords in ad group have reached the maximum allowed.
         
        ADGROUP_KEYWORD_LIMIT = 7;
        See Also:
        Constant Field Values
      • RECOMMENDATION_ALREADY_APPLIED_VALUE

        public static final int RECOMMENDATION_ALREADY_APPLIED_VALUE
         The recommendation requested to apply has already been applied.
         
        RECOMMENDATION_ALREADY_APPLIED = 8;
        See Also:
        Constant Field Values
      • RECOMMENDATION_INVALIDATED_VALUE

        public static final int RECOMMENDATION_INVALIDATED_VALUE
         The recommendation requested to apply has been invalidated.
         
        RECOMMENDATION_INVALIDATED = 9;
        See Also:
        Constant Field Values
      • TOO_MANY_OPERATIONS_VALUE

        public static final int TOO_MANY_OPERATIONS_VALUE
         The number of operations in a single request exceeds the maximum allowed.
         
        TOO_MANY_OPERATIONS = 10;
        See Also:
        Constant Field Values
      • NO_OPERATIONS_VALUE

        public static final int NO_OPERATIONS_VALUE
         There are no operations in the request.
         
        NO_OPERATIONS = 11;
        See Also:
        Constant Field Values
      • DIFFERENT_TYPES_NOT_SUPPORTED_VALUE

        public static final int DIFFERENT_TYPES_NOT_SUPPORTED_VALUE
         Operations with multiple recommendation types are not supported when
         partial failure mode is not enabled.
         
        DIFFERENT_TYPES_NOT_SUPPORTED = 12;
        See Also:
        Constant Field Values
      • DUPLICATE_RESOURCE_NAME_VALUE

        public static final int DUPLICATE_RESOURCE_NAME_VALUE
         Request contains multiple operations with the same resource_name.
         
        DUPLICATE_RESOURCE_NAME = 13;
        See Also:
        Constant Field Values
      • RECOMMENDATION_ALREADY_DISMISSED_VALUE

        public static final int RECOMMENDATION_ALREADY_DISMISSED_VALUE
         The recommendation requested to dismiss has already been dismissed.
         
        RECOMMENDATION_ALREADY_DISMISSED = 14;
        See Also:
        Constant Field Values
      • INVALID_APPLY_REQUEST_VALUE

        public static final int INVALID_APPLY_REQUEST_VALUE
         The recommendation apply request was malformed and invalid.
         
        INVALID_APPLY_REQUEST = 15;
        See Also:
        Constant Field Values
      • RECOMMENDATION_TYPE_APPLY_NOT_SUPPORTED_VALUE

        public static final int RECOMMENDATION_TYPE_APPLY_NOT_SUPPORTED_VALUE
         The type of recommendation requested to apply is not supported.
         
        RECOMMENDATION_TYPE_APPLY_NOT_SUPPORTED = 17;
        See Also:
        Constant Field Values
    • Method Detail

      • values

        public static RecommendationErrorEnum.RecommendationError[] 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 (RecommendationErrorEnum.RecommendationError c : RecommendationErrorEnum.RecommendationError.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static RecommendationErrorEnum.RecommendationError 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 RecommendationErrorEnum.RecommendationError 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 RecommendationErrorEnum.RecommendationError 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 RecommendationErrorEnum.RecommendationError 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