Enum LabelErrorEnum.LabelError
- java.lang.Object
-
- java.lang.Enum<LabelErrorEnum.LabelError>
-
- com.google.ads.googleads.v10.errors.LabelErrorEnum.LabelError
-
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,java.io.Serializable,java.lang.Comparable<LabelErrorEnum.LabelError>
- Enclosing class:
- LabelErrorEnum
public static enum LabelErrorEnum.LabelError extends java.lang.Enum<LabelErrorEnum.LabelError> implements com.google.protobuf.ProtocolMessageEnum
Enum describing possible label errors.
Protobuf enumgoogle.ads.googleads.v10.errors.LabelErrorEnum.LabelError
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CANNOT_APPLY_INACTIVE_LABELAn inactive label cannot be applied.CANNOT_APPLY_LABEL_TO_DISABLED_AD_GROUP_CRITERIONA label cannot be applied to a disabled ad group criterion.CANNOT_APPLY_LABEL_TO_NEGATIVE_AD_GROUP_CRITERIONA label cannot be applied to a negative ad group criterion.CANNOT_ATTACH_LABEL_TO_DRAFTLabels cannot be applied to a draft.CANNOT_ATTACH_NON_MANAGER_LABEL_TO_CUSTOMERLabels not from a manager account cannot be applied to the customer resource.DUPLICATE_NAMELabel names must be unique.EXCEEDED_LABEL_LIMIT_PER_TYPECannot apply more than 50 labels per resource.INVALID_LABEL_NAMELabel names cannot be empty.INVALID_RESOURCE_FOR_MANAGER_LABELLabels from a manager account cannot be applied to campaign, ad group, ad group ad, or ad group criterion resources.UNKNOWNThe received error code is not known in this version.UNRECOGNIZEDUNSPECIFIEDEnum unspecified.
-
Field Summary
Fields Modifier and Type Field Description static intCANNOT_APPLY_INACTIVE_LABEL_VALUEAn inactive label cannot be applied.static intCANNOT_APPLY_LABEL_TO_DISABLED_AD_GROUP_CRITERION_VALUEA label cannot be applied to a disabled ad group criterion.static intCANNOT_APPLY_LABEL_TO_NEGATIVE_AD_GROUP_CRITERION_VALUEA label cannot be applied to a negative ad group criterion.static intCANNOT_ATTACH_LABEL_TO_DRAFT_VALUELabels cannot be applied to a draft.static intCANNOT_ATTACH_NON_MANAGER_LABEL_TO_CUSTOMER_VALUELabels not from a manager account cannot be applied to the customer resource.static intDUPLICATE_NAME_VALUELabel names must be unique.static intEXCEEDED_LABEL_LIMIT_PER_TYPE_VALUECannot apply more than 50 labels per resource.static intINVALID_LABEL_NAME_VALUELabel names cannot be empty.static intINVALID_RESOURCE_FOR_MANAGER_LABEL_VALUELabels from a manager account cannot be applied to campaign, ad group, ad group ad, or ad group criterion resources.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 LabelErrorEnum.LabelErrorforNumber(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<LabelErrorEnum.LabelError>internalGetValueMap()static LabelErrorEnum.LabelErrorvalueOf(int value)Deprecated.static LabelErrorEnum.LabelErrorvalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)Returns the enum constant of this type with the specified name.static LabelErrorEnum.LabelErrorvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static LabelErrorEnum.LabelError[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UNSPECIFIED
public static final LabelErrorEnum.LabelError UNSPECIFIED
Enum unspecified.
UNSPECIFIED = 0;
-
UNKNOWN
public static final LabelErrorEnum.LabelError UNKNOWN
The received error code is not known in this version.
UNKNOWN = 1;
-
CANNOT_APPLY_INACTIVE_LABEL
public static final LabelErrorEnum.LabelError CANNOT_APPLY_INACTIVE_LABEL
An inactive label cannot be applied.
CANNOT_APPLY_INACTIVE_LABEL = 2;
-
CANNOT_APPLY_LABEL_TO_DISABLED_AD_GROUP_CRITERION
public static final LabelErrorEnum.LabelError CANNOT_APPLY_LABEL_TO_DISABLED_AD_GROUP_CRITERION
A label cannot be applied to a disabled ad group criterion.
CANNOT_APPLY_LABEL_TO_DISABLED_AD_GROUP_CRITERION = 3;
-
CANNOT_APPLY_LABEL_TO_NEGATIVE_AD_GROUP_CRITERION
public static final LabelErrorEnum.LabelError CANNOT_APPLY_LABEL_TO_NEGATIVE_AD_GROUP_CRITERION
A label cannot be applied to a negative ad group criterion.
CANNOT_APPLY_LABEL_TO_NEGATIVE_AD_GROUP_CRITERION = 4;
-
EXCEEDED_LABEL_LIMIT_PER_TYPE
public static final LabelErrorEnum.LabelError EXCEEDED_LABEL_LIMIT_PER_TYPE
Cannot apply more than 50 labels per resource.
EXCEEDED_LABEL_LIMIT_PER_TYPE = 5;
-
INVALID_RESOURCE_FOR_MANAGER_LABEL
public static final LabelErrorEnum.LabelError INVALID_RESOURCE_FOR_MANAGER_LABEL
Labels from a manager account cannot be applied to campaign, ad group, ad group ad, or ad group criterion resources.
INVALID_RESOURCE_FOR_MANAGER_LABEL = 6;
-
DUPLICATE_NAME
public static final LabelErrorEnum.LabelError DUPLICATE_NAME
Label names must be unique.
DUPLICATE_NAME = 7;
-
INVALID_LABEL_NAME
public static final LabelErrorEnum.LabelError INVALID_LABEL_NAME
Label names cannot be empty.
INVALID_LABEL_NAME = 8;
-
CANNOT_ATTACH_LABEL_TO_DRAFT
public static final LabelErrorEnum.LabelError CANNOT_ATTACH_LABEL_TO_DRAFT
Labels cannot be applied to a draft.
CANNOT_ATTACH_LABEL_TO_DRAFT = 9;
-
CANNOT_ATTACH_NON_MANAGER_LABEL_TO_CUSTOMER
public static final LabelErrorEnum.LabelError CANNOT_ATTACH_NON_MANAGER_LABEL_TO_CUSTOMER
Labels not from a manager account cannot be applied to the customer resource.
CANNOT_ATTACH_NON_MANAGER_LABEL_TO_CUSTOMER = 10;
-
UNRECOGNIZED
public static final LabelErrorEnum.LabelError 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
-
CANNOT_APPLY_INACTIVE_LABEL_VALUE
public static final int CANNOT_APPLY_INACTIVE_LABEL_VALUE
An inactive label cannot be applied.
CANNOT_APPLY_INACTIVE_LABEL = 2;- See Also:
- Constant Field Values
-
CANNOT_APPLY_LABEL_TO_DISABLED_AD_GROUP_CRITERION_VALUE
public static final int CANNOT_APPLY_LABEL_TO_DISABLED_AD_GROUP_CRITERION_VALUE
A label cannot be applied to a disabled ad group criterion.
CANNOT_APPLY_LABEL_TO_DISABLED_AD_GROUP_CRITERION = 3;- See Also:
- Constant Field Values
-
CANNOT_APPLY_LABEL_TO_NEGATIVE_AD_GROUP_CRITERION_VALUE
public static final int CANNOT_APPLY_LABEL_TO_NEGATIVE_AD_GROUP_CRITERION_VALUE
A label cannot be applied to a negative ad group criterion.
CANNOT_APPLY_LABEL_TO_NEGATIVE_AD_GROUP_CRITERION = 4;- See Also:
- Constant Field Values
-
EXCEEDED_LABEL_LIMIT_PER_TYPE_VALUE
public static final int EXCEEDED_LABEL_LIMIT_PER_TYPE_VALUE
Cannot apply more than 50 labels per resource.
EXCEEDED_LABEL_LIMIT_PER_TYPE = 5;- See Also:
- Constant Field Values
-
INVALID_RESOURCE_FOR_MANAGER_LABEL_VALUE
public static final int INVALID_RESOURCE_FOR_MANAGER_LABEL_VALUE
Labels from a manager account cannot be applied to campaign, ad group, ad group ad, or ad group criterion resources.
INVALID_RESOURCE_FOR_MANAGER_LABEL = 6;- See Also:
- Constant Field Values
-
DUPLICATE_NAME_VALUE
public static final int DUPLICATE_NAME_VALUE
Label names must be unique.
DUPLICATE_NAME = 7;- See Also:
- Constant Field Values
-
INVALID_LABEL_NAME_VALUE
public static final int INVALID_LABEL_NAME_VALUE
Label names cannot be empty.
INVALID_LABEL_NAME = 8;- See Also:
- Constant Field Values
-
CANNOT_ATTACH_LABEL_TO_DRAFT_VALUE
public static final int CANNOT_ATTACH_LABEL_TO_DRAFT_VALUE
Labels cannot be applied to a draft.
CANNOT_ATTACH_LABEL_TO_DRAFT = 9;- See Also:
- Constant Field Values
-
CANNOT_ATTACH_NON_MANAGER_LABEL_TO_CUSTOMER_VALUE
public static final int CANNOT_ATTACH_NON_MANAGER_LABEL_TO_CUSTOMER_VALUE
Labels not from a manager account cannot be applied to the customer resource.
CANNOT_ATTACH_NON_MANAGER_LABEL_TO_CUSTOMER = 10;- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static LabelErrorEnum.LabelError[] 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 (LabelErrorEnum.LabelError c : LabelErrorEnum.LabelError.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static LabelErrorEnum.LabelError 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 LabelErrorEnum.LabelError 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 LabelErrorEnum.LabelError 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<LabelErrorEnum.LabelError> 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 LabelErrorEnum.LabelError 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
-
-