Enum RecommendationErrorEnum.RecommendationError
- java.lang.Object
-
- java.lang.Enum<RecommendationErrorEnum.RecommendationError>
-
- com.google.ads.googleads.v10.errors.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 enumgoogle.ads.googleads.v10.errors.RecommendationErrorEnum.RecommendationError
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ADGROUP_KEYWORD_LIMITThe number of keywords in ad group have reached the maximum allowed.BUDGET_AMOUNT_TOO_LARGEThe specified budget amount is too large.BUDGET_AMOUNT_TOO_SMALLThe specified budget amount is too low e.g.DIFFERENT_TYPES_NOT_SUPPORTEDOperations with multiple recommendation types are not supported when partial failure mode is not enabled.DUPLICATE_RESOURCE_NAMERequest contains multiple operations with the same resource_name.INVALID_APPLY_REQUESTThe recommendation apply request was malformed and invalid.INVALID_BID_AMOUNTThe specified bid amount is not valid.INVALID_BUDGET_AMOUNTThe specified budget amount is not a valid amount.NO_OPERATIONSThere are no operations in the request.POLICY_ERRORThe specified keyword or ad violates ad policy.RECOMMENDATION_ALREADY_APPLIEDThe recommendation requested to apply has already been applied.RECOMMENDATION_ALREADY_DISMISSEDThe recommendation requested to dismiss has already been dismissed.RECOMMENDATION_INVALIDATEDThe recommendation requested to apply has been invalidated.TOO_MANY_OPERATIONSThe number of operations in a single request exceeds the maximum allowed.UNKNOWNThe received error code is not known in this version.UNRECOGNIZEDUNSPECIFIEDEnum unspecified.
-
Field Summary
Fields Modifier and Type Field Description static intADGROUP_KEYWORD_LIMIT_VALUEThe number of keywords in ad group have reached the maximum allowed.static intBUDGET_AMOUNT_TOO_LARGE_VALUEThe specified budget amount is too large.static intBUDGET_AMOUNT_TOO_SMALL_VALUEThe specified budget amount is too low e.g.static intDIFFERENT_TYPES_NOT_SUPPORTED_VALUEOperations with multiple recommendation types are not supported when partial failure mode is not enabled.static intDUPLICATE_RESOURCE_NAME_VALUERequest contains multiple operations with the same resource_name.static intINVALID_APPLY_REQUEST_VALUEThe recommendation apply request was malformed and invalid.static intINVALID_BID_AMOUNT_VALUEThe specified bid amount is not valid.static intINVALID_BUDGET_AMOUNT_VALUEThe specified budget amount is not a valid amount.static intNO_OPERATIONS_VALUEThere are no operations in the request.static intPOLICY_ERROR_VALUEThe specified keyword or ad violates ad policy.static intRECOMMENDATION_ALREADY_APPLIED_VALUEThe recommendation requested to apply has already been applied.static intRECOMMENDATION_ALREADY_DISMISSED_VALUEThe recommendation requested to dismiss has already been dismissed.static intRECOMMENDATION_INVALIDATED_VALUEThe recommendation requested to apply has been invalidated.static intTOO_MANY_OPERATIONS_VALUEThe number of operations in a single request exceeds the maximum allowed.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 RecommendationErrorEnum.RecommendationErrorforNumber(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<RecommendationErrorEnum.RecommendationError>internalGetValueMap()static RecommendationErrorEnum.RecommendationErrorvalueOf(int value)Deprecated.static RecommendationErrorEnum.RecommendationErrorvalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)Returns the enum constant of this type with the specified name.static RecommendationErrorEnum.RecommendationErrorvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static RecommendationErrorEnum.RecommendationError[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UNSPECIFIED
public static final RecommendationErrorEnum.RecommendationError UNSPECIFIED
Enum unspecified.
UNSPECIFIED = 0;
-
UNKNOWN
public static final RecommendationErrorEnum.RecommendationError UNKNOWN
The received error code is not known in this version.
UNKNOWN = 1;
-
BUDGET_AMOUNT_TOO_SMALL
public static final RecommendationErrorEnum.RecommendationError BUDGET_AMOUNT_TOO_SMALL
The specified budget amount is too low e.g. lower than minimum currency unit or lower than ad group minimum cost-per-click.
BUDGET_AMOUNT_TOO_SMALL = 2;
-
BUDGET_AMOUNT_TOO_LARGE
public static final RecommendationErrorEnum.RecommendationError BUDGET_AMOUNT_TOO_LARGE
The specified budget amount is too large.
BUDGET_AMOUNT_TOO_LARGE = 3;
-
INVALID_BUDGET_AMOUNT
public static final RecommendationErrorEnum.RecommendationError INVALID_BUDGET_AMOUNT
The specified budget amount is not a valid amount. e.g. not a multiple of minimum currency unit.
INVALID_BUDGET_AMOUNT = 4;
-
POLICY_ERROR
public static final RecommendationErrorEnum.RecommendationError POLICY_ERROR
The specified keyword or ad violates ad policy.
POLICY_ERROR = 5;
-
INVALID_BID_AMOUNT
public static final RecommendationErrorEnum.RecommendationError INVALID_BID_AMOUNT
The specified bid amount is not valid. e.g. too many fractional digits, or negative amount.
INVALID_BID_AMOUNT = 6;
-
ADGROUP_KEYWORD_LIMIT
public static final RecommendationErrorEnum.RecommendationError ADGROUP_KEYWORD_LIMIT
The number of keywords in ad group have reached the maximum allowed.
ADGROUP_KEYWORD_LIMIT = 7;
-
RECOMMENDATION_ALREADY_APPLIED
public static final RecommendationErrorEnum.RecommendationError RECOMMENDATION_ALREADY_APPLIED
The recommendation requested to apply has already been applied.
RECOMMENDATION_ALREADY_APPLIED = 8;
-
RECOMMENDATION_INVALIDATED
public static final RecommendationErrorEnum.RecommendationError RECOMMENDATION_INVALIDATED
The recommendation requested to apply has been invalidated.
RECOMMENDATION_INVALIDATED = 9;
-
TOO_MANY_OPERATIONS
public static final RecommendationErrorEnum.RecommendationError TOO_MANY_OPERATIONS
The number of operations in a single request exceeds the maximum allowed.
TOO_MANY_OPERATIONS = 10;
-
NO_OPERATIONS
public static final RecommendationErrorEnum.RecommendationError NO_OPERATIONS
There are no operations in the request.
NO_OPERATIONS = 11;
-
DIFFERENT_TYPES_NOT_SUPPORTED
public static final RecommendationErrorEnum.RecommendationError DIFFERENT_TYPES_NOT_SUPPORTED
Operations with multiple recommendation types are not supported when partial failure mode is not enabled.
DIFFERENT_TYPES_NOT_SUPPORTED = 12;
-
DUPLICATE_RESOURCE_NAME
public static final RecommendationErrorEnum.RecommendationError DUPLICATE_RESOURCE_NAME
Request contains multiple operations with the same resource_name.
DUPLICATE_RESOURCE_NAME = 13;
-
RECOMMENDATION_ALREADY_DISMISSED
public static final RecommendationErrorEnum.RecommendationError RECOMMENDATION_ALREADY_DISMISSED
The recommendation requested to dismiss has already been dismissed.
RECOMMENDATION_ALREADY_DISMISSED = 14;
-
INVALID_APPLY_REQUEST
public static final RecommendationErrorEnum.RecommendationError INVALID_APPLY_REQUEST
The recommendation apply request was malformed and invalid.
INVALID_APPLY_REQUEST = 15;
-
UNRECOGNIZED
public static final RecommendationErrorEnum.RecommendationError 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
-
BUDGET_AMOUNT_TOO_SMALL_VALUE
public static final int BUDGET_AMOUNT_TOO_SMALL_VALUE
The specified budget amount is too low e.g. 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. e.g. 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. e.g. 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
-
-
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 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 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 namejava.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.
-
internalGetValueMap
public static com.google.protobuf.Internal.EnumLiteMap<RecommendationErrorEnum.RecommendationError> 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 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 namejava.lang.NullPointerException- if the argument is null
-
-