Enum Class LabelErrorEnum.LabelError

java.lang.Object
java.lang.Enum<LabelErrorEnum.LabelError>
com.google.ads.googleads.v18.errors.LabelErrorEnum.LabelError
All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite, com.google.protobuf.ProtocolMessageEnum, Serializable, Comparable<LabelErrorEnum.LabelError>, Constable
Enclosing class:
LabelErrorEnum

public static enum LabelErrorEnum.LabelError extends Enum<LabelErrorEnum.LabelError> implements com.google.protobuf.ProtocolMessageEnum
 Enum describing possible label errors.
 
Protobuf enum google.ads.googleads.v18.errors.LabelErrorEnum.LabelError
  • Enum Constant Details

    • 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 Details

    • UNSPECIFIED_VALUE

      public static final int UNSPECIFIED_VALUE
       Enum unspecified.
       
      UNSPECIFIED = 0;
      See Also:
    • UNKNOWN_VALUE

      public static final int UNKNOWN_VALUE
       The received error code is not known in this version.
       
      UNKNOWN = 1;
      See Also:
    • 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:
    • 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:
    • 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:
    • 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:
    • 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:
    • DUPLICATE_NAME_VALUE

      public static final int DUPLICATE_NAME_VALUE
       Label names must be unique.
       
      DUPLICATE_NAME = 7;
      See Also:
    • INVALID_LABEL_NAME_VALUE

      public static final int INVALID_LABEL_NAME_VALUE
       Label names cannot be empty.
       
      INVALID_LABEL_NAME = 8;
      See Also:
    • 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:
    • 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:
  • Method Details

    • values

      public static LabelErrorEnum.LabelError[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static LabelErrorEnum.LabelError valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
      IllegalArgumentException - if this enum class has no constant with the specified name
      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 LabelErrorEnum.LabelError valueOf(int value)
      Deprecated.
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
      IllegalArgumentException - if this enum class has no constant with the specified name
      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:
      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 LabelErrorEnum.LabelError valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null