Enum AdGroupAdErrorEnum.AdGroupAdError

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

    public static enum AdGroupAdErrorEnum.AdGroupAdError
    extends java.lang.Enum<AdGroupAdErrorEnum.AdGroupAdError>
    implements com.google.protobuf.ProtocolMessageEnum
     Enum describing possible ad group ad errors.
     
    Protobuf enum google.ads.googleads.v10.errors.AdGroupAdErrorEnum.AdGroupAdError
    • Enum Constant Detail

      • AD_GROUP_AD_LABEL_DOES_NOT_EXIST

        public static final AdGroupAdErrorEnum.AdGroupAdError AD_GROUP_AD_LABEL_DOES_NOT_EXIST
         No link found between the adgroup ad and the label.
         
        AD_GROUP_AD_LABEL_DOES_NOT_EXIST = 2;
      • AD_GROUP_AD_LABEL_ALREADY_EXISTS

        public static final AdGroupAdErrorEnum.AdGroupAdError AD_GROUP_AD_LABEL_ALREADY_EXISTS
         The label has already been attached to the adgroup ad.
         
        AD_GROUP_AD_LABEL_ALREADY_EXISTS = 3;
      • AD_NOT_UNDER_ADGROUP

        public static final AdGroupAdErrorEnum.AdGroupAdError AD_NOT_UNDER_ADGROUP
         The specified ad was not found in the adgroup
         
        AD_NOT_UNDER_ADGROUP = 4;
      • CANNOT_OPERATE_ON_REMOVED_ADGROUPAD

        public static final AdGroupAdErrorEnum.AdGroupAdError CANNOT_OPERATE_ON_REMOVED_ADGROUPAD
         Removed ads may not be modified
         
        CANNOT_OPERATE_ON_REMOVED_ADGROUPAD = 5;
      • CANNOT_CREATE_DEPRECATED_ADS

        public static final AdGroupAdErrorEnum.AdGroupAdError CANNOT_CREATE_DEPRECATED_ADS
         An ad of this type is deprecated and cannot be created. Only deletions
         are permitted.
         
        CANNOT_CREATE_DEPRECATED_ADS = 6;
      • CANNOT_CREATE_TEXT_ADS

        public static final AdGroupAdErrorEnum.AdGroupAdError CANNOT_CREATE_TEXT_ADS
         Text ads are deprecated and cannot be created. Use expanded text ads
         instead.
         
        CANNOT_CREATE_TEXT_ADS = 7;
      • RESOURCE_REFERENCED_IN_MULTIPLE_OPS

        public static final AdGroupAdErrorEnum.AdGroupAdError RESOURCE_REFERENCED_IN_MULTIPLE_OPS
         An ad may only be modified once per call
         
        RESOURCE_REFERENCED_IN_MULTIPLE_OPS = 9;
      • AD_TYPE_CANNOT_BE_PAUSED

        public static final AdGroupAdErrorEnum.AdGroupAdError AD_TYPE_CANNOT_BE_PAUSED
         AdGroupAds with the given ad type cannot be paused.
         
        AD_TYPE_CANNOT_BE_PAUSED = 10;
      • AD_TYPE_CANNOT_BE_REMOVED

        public static final AdGroupAdErrorEnum.AdGroupAdError AD_TYPE_CANNOT_BE_REMOVED
         AdGroupAds with the given ad type cannot be removed.
         
        AD_TYPE_CANNOT_BE_REMOVED = 11;
      • CANNOT_UPDATE_DEPRECATED_ADS

        public static final AdGroupAdErrorEnum.AdGroupAdError CANNOT_UPDATE_DEPRECATED_ADS
         An ad of this type is deprecated and cannot be updated. Only removals
         are permitted.
         
        CANNOT_UPDATE_DEPRECATED_ADS = 12;
    • 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
      • AD_GROUP_AD_LABEL_DOES_NOT_EXIST_VALUE

        public static final int AD_GROUP_AD_LABEL_DOES_NOT_EXIST_VALUE
         No link found between the adgroup ad and the label.
         
        AD_GROUP_AD_LABEL_DOES_NOT_EXIST = 2;
        See Also:
        Constant Field Values
      • AD_GROUP_AD_LABEL_ALREADY_EXISTS_VALUE

        public static final int AD_GROUP_AD_LABEL_ALREADY_EXISTS_VALUE
         The label has already been attached to the adgroup ad.
         
        AD_GROUP_AD_LABEL_ALREADY_EXISTS = 3;
        See Also:
        Constant Field Values
      • AD_NOT_UNDER_ADGROUP_VALUE

        public static final int AD_NOT_UNDER_ADGROUP_VALUE
         The specified ad was not found in the adgroup
         
        AD_NOT_UNDER_ADGROUP = 4;
        See Also:
        Constant Field Values
      • CANNOT_OPERATE_ON_REMOVED_ADGROUPAD_VALUE

        public static final int CANNOT_OPERATE_ON_REMOVED_ADGROUPAD_VALUE
         Removed ads may not be modified
         
        CANNOT_OPERATE_ON_REMOVED_ADGROUPAD = 5;
        See Also:
        Constant Field Values
      • CANNOT_CREATE_DEPRECATED_ADS_VALUE

        public static final int CANNOT_CREATE_DEPRECATED_ADS_VALUE
         An ad of this type is deprecated and cannot be created. Only deletions
         are permitted.
         
        CANNOT_CREATE_DEPRECATED_ADS = 6;
        See Also:
        Constant Field Values
      • CANNOT_CREATE_TEXT_ADS_VALUE

        public static final int CANNOT_CREATE_TEXT_ADS_VALUE
         Text ads are deprecated and cannot be created. Use expanded text ads
         instead.
         
        CANNOT_CREATE_TEXT_ADS = 7;
        See Also:
        Constant Field Values
      • EMPTY_FIELD_VALUE

        public static final int EMPTY_FIELD_VALUE
         A required field was not specified or is an empty string.
         
        EMPTY_FIELD = 8;
        See Also:
        Constant Field Values
      • RESOURCE_REFERENCED_IN_MULTIPLE_OPS_VALUE

        public static final int RESOURCE_REFERENCED_IN_MULTIPLE_OPS_VALUE
         An ad may only be modified once per call
         
        RESOURCE_REFERENCED_IN_MULTIPLE_OPS = 9;
        See Also:
        Constant Field Values
      • AD_TYPE_CANNOT_BE_PAUSED_VALUE

        public static final int AD_TYPE_CANNOT_BE_PAUSED_VALUE
         AdGroupAds with the given ad type cannot be paused.
         
        AD_TYPE_CANNOT_BE_PAUSED = 10;
        See Also:
        Constant Field Values
      • AD_TYPE_CANNOT_BE_REMOVED_VALUE

        public static final int AD_TYPE_CANNOT_BE_REMOVED_VALUE
         AdGroupAds with the given ad type cannot be removed.
         
        AD_TYPE_CANNOT_BE_REMOVED = 11;
        See Also:
        Constant Field Values
      • CANNOT_UPDATE_DEPRECATED_ADS_VALUE

        public static final int CANNOT_UPDATE_DEPRECATED_ADS_VALUE
         An ad of this type is deprecated and cannot be updated. Only removals
         are permitted.
         
        CANNOT_UPDATE_DEPRECATED_ADS = 12;
        See Also:
        Constant Field Values
    • Method Detail

      • values

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

        public static AdGroupAdErrorEnum.AdGroupAdError 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 AdGroupAdErrorEnum.AdGroupAdError 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 AdGroupAdErrorEnum.AdGroupAdError 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 AdGroupAdErrorEnum.AdGroupAdError 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