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

      • 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;
    • 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 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 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 name
        java.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:
        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 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