Enum OpenRtb.DataAssetType

  • All Implemented Interfaces:
    com.google.protobuf.Internal.EnumLite, com.google.protobuf.ProtocolMessageEnum, Serializable, Comparable<OpenRtb.DataAssetType>
    Enclosing class:
    OpenRtb

    public static enum OpenRtb.DataAssetType
    extends Enum<OpenRtb.DataAssetType>
    implements com.google.protobuf.ProtocolMessageEnum
     OpenRTB Native 1.0: Common asset element types of native advertising.
     This list is non-exhaustive and intended to be extended by the buyers
     and sellers as the format evolves. An implementing exchange may not
     support all asset variants or introduce new ones unique to that system.
     
    Protobuf enum com.google.openrtb.DataAssetType
    • Enum Constant Detail

      • SPONSORED

        public static final OpenRtb.DataAssetType SPONSORED
         Sponsored By message where response should contain the brand name
         of the sponsor.
         Format: Text; Max length: 25 or longer.
         
        SPONSORED = 1;
      • DESC

        public static final OpenRtb.DataAssetType DESC
         Descriptive text associated with the product or service being advertised.
         Format: Text; Max length: 140 or longer.
         
        DESC = 2;
      • RATING

        public static final OpenRtb.DataAssetType RATING
         Rating of the product being offered to the user.
         For example an app's rating in an app store from 0-5.
         Format: Number (1-5 digits) formatted as string.
         
        RATING = 3;
      • LIKES

        public static final OpenRtb.DataAssetType LIKES
         Number of social ratings or "likes" of product being offered to the user.
         Format: Number formatted as string.
         
        LIKES = 4;
      • DOWNLOADS

        public static final OpenRtb.DataAssetType DOWNLOADS
         Number downloads/installs of this product.
         Format: Number formatted as string.
         
        DOWNLOADS = 5;
      • PRICE

        public static final OpenRtb.DataAssetType PRICE
         Price for product / app / in-app purchase.
         Value should include currency symbol in localised format.
         Format: Number formatted as string.
         
        PRICE = 6;
      • SALEPRICE

        public static final OpenRtb.DataAssetType SALEPRICE
         Sale price that can be used together with price to indicate a discounted
         price compared to a regular price. Value should include currency symbol
         in localised format.
         Format: Number formatted as string.
         
        SALEPRICE = 7;
      • PHONE

        public static final OpenRtb.DataAssetType PHONE
         Phone number.
         Format: Formatted string.
         
        PHONE = 8;
      • DESC2

        public static final OpenRtb.DataAssetType DESC2
         Additional descriptive text associated with the product or service
         being advertised.
         Format: Text.
         
        DESC2 = 10;
      • DISPLAYURL

        public static final OpenRtb.DataAssetType DISPLAYURL
         Display URL for the text ad.
         Format: Text.
         
        DISPLAYURL = 11;
      • CTATEXT

        public static final OpenRtb.DataAssetType CTATEXT
         Text describing a 'call to action' button for the destination URL.
         Format: Text.
         
        CTATEXT = 12;
    • Field Detail

      • SPONSORED_VALUE

        public static final int SPONSORED_VALUE
         Sponsored By message where response should contain the brand name
         of the sponsor.
         Format: Text; Max length: 25 or longer.
         
        SPONSORED = 1;
        See Also:
        Constant Field Values
      • DESC_VALUE

        public static final int DESC_VALUE
         Descriptive text associated with the product or service being advertised.
         Format: Text; Max length: 140 or longer.
         
        DESC = 2;
        See Also:
        Constant Field Values
      • RATING_VALUE

        public static final int RATING_VALUE
         Rating of the product being offered to the user.
         For example an app's rating in an app store from 0-5.
         Format: Number (1-5 digits) formatted as string.
         
        RATING = 3;
        See Also:
        Constant Field Values
      • LIKES_VALUE

        public static final int LIKES_VALUE
         Number of social ratings or "likes" of product being offered to the user.
         Format: Number formatted as string.
         
        LIKES = 4;
        See Also:
        Constant Field Values
      • DOWNLOADS_VALUE

        public static final int DOWNLOADS_VALUE
         Number downloads/installs of this product.
         Format: Number formatted as string.
         
        DOWNLOADS = 5;
        See Also:
        Constant Field Values
      • PRICE_VALUE

        public static final int PRICE_VALUE
         Price for product / app / in-app purchase.
         Value should include currency symbol in localised format.
         Format: Number formatted as string.
         
        PRICE = 6;
        See Also:
        Constant Field Values
      • SALEPRICE_VALUE

        public static final int SALEPRICE_VALUE
         Sale price that can be used together with price to indicate a discounted
         price compared to a regular price. Value should include currency symbol
         in localised format.
         Format: Number formatted as string.
         
        SALEPRICE = 7;
        See Also:
        Constant Field Values
      • PHONE_VALUE

        public static final int PHONE_VALUE
         Phone number.
         Format: Formatted string.
         
        PHONE = 8;
        See Also:
        Constant Field Values
      • ADDRESS_VALUE

        public static final int ADDRESS_VALUE
         Address.
         Format: Text.
         
        ADDRESS = 9;
        See Also:
        Constant Field Values
      • DESC2_VALUE

        public static final int DESC2_VALUE
         Additional descriptive text associated with the product or service
         being advertised.
         Format: Text.
         
        DESC2 = 10;
        See Also:
        Constant Field Values
      • DISPLAYURL_VALUE

        public static final int DISPLAYURL_VALUE
         Display URL for the text ad.
         Format: Text.
         
        DISPLAYURL = 11;
        See Also:
        Constant Field Values
      • CTATEXT_VALUE

        public static final int CTATEXT_VALUE
         Text describing a 'call to action' button for the destination URL.
         Format: Text.
         
        CTATEXT = 12;
        See Also:
        Constant Field Values
    • Method Detail

      • values

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

        public static OpenRtb.DataAssetType valueOf​(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:
        IllegalArgumentException - if this enum type 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 OpenRtb.DataAssetType 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:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • forNumber

        public static OpenRtb.DataAssetType 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<OpenRtb.DataAssetType> 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 OpenRtb.DataAssetType 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:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null