Enum OpenRtb.PlacementType

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

    public static enum OpenRtb.PlacementType
    extends Enum<OpenRtb.PlacementType>
    implements com.google.protobuf.ProtocolMessageEnum
     OpenRTB Native 1.1: The FORMAT of the ad you are purchasing,
     separate from the surrounding context.
     
    Protobuf enum com.google.openrtb.PlacementType
    • Enum Constant Detail

      • IN_FEED

        public static final OpenRtb.PlacementType IN_FEED
         In the feed of content - for example as an item inside the organic
         feed/grid/listing/carousel.
         
        IN_FEED = 1;
      • ATOMIC_UNIT

        public static final OpenRtb.PlacementType ATOMIC_UNIT
         In the atomic unit of the content - IE in the article page
         or single image page.
         
        ATOMIC_UNIT = 2;
      • OUTSIDE

        public static final OpenRtb.PlacementType OUTSIDE
         Outside the core content - for example in the ads section on the
         right rail, as a banner-style placement near the content, etc.
         
        OUTSIDE = 3;
      • RECOMMENDATION

        public static final OpenRtb.PlacementType RECOMMENDATION
         Recommendation widget, most commonly presented below
         the article content.
         
        RECOMMENDATION = 4;
    • Field Detail

      • IN_FEED_VALUE

        public static final int IN_FEED_VALUE
         In the feed of content - for example as an item inside the organic
         feed/grid/listing/carousel.
         
        IN_FEED = 1;
        See Also:
        Constant Field Values
      • ATOMIC_UNIT_VALUE

        public static final int ATOMIC_UNIT_VALUE
         In the atomic unit of the content - IE in the article page
         or single image page.
         
        ATOMIC_UNIT = 2;
        See Also:
        Constant Field Values
      • OUTSIDE_VALUE

        public static final int OUTSIDE_VALUE
         Outside the core content - for example in the ads section on the
         right rail, as a banner-style placement near the content, etc.
         
        OUTSIDE = 3;
        See Also:
        Constant Field Values
      • RECOMMENDATION_VALUE

        public static final int RECOMMENDATION_VALUE
         Recommendation widget, most commonly presented below
         the article content.
         
        RECOMMENDATION = 4;
        See Also:
        Constant Field Values
    • Method Detail

      • values

        public static OpenRtb.PlacementType[] 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.PlacementType c : OpenRtb.PlacementType.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.PlacementType 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.PlacementType 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.PlacementType 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.PlacementType> 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.PlacementType 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