Package com.google.openrtb
Enum OpenRtb.PlacementType
- java.lang.Object
-
- java.lang.Enum<OpenRtb.PlacementType>
-
- com.google.openrtb.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 enumcom.google.openrtb.PlacementType
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ATOMIC_UNITIn the atomic unit of the content - IE in the article page or single image page.IN_FEEDIn the feed of content - for example as an item inside the organic feed/grid/listing/carousel.OUTSIDEOutside the core content - for example in the ads section on the right rail, as a banner-style placement near the content, etc.RECOMMENDATIONRecommendation widget, most commonly presented below the article content.
-
Field Summary
Fields Modifier and Type Field Description static intATOMIC_UNIT_VALUEIn the atomic unit of the content - IE in the article page or single image page.static intIN_FEED_VALUEIn the feed of content - for example as an item inside the organic feed/grid/listing/carousel.static intOUTSIDE_VALUEOutside the core content - for example in the ads section on the right rail, as a banner-style placement near the content, etc.static intRECOMMENDATION_VALUERecommendation widget, most commonly presented below the article content.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static OpenRtb.PlacementTypeforNumber(int value)static com.google.protobuf.Descriptors.EnumDescriptorgetDescriptor()com.google.protobuf.Descriptors.EnumDescriptorgetDescriptorForType()intgetNumber()com.google.protobuf.Descriptors.EnumValueDescriptorgetValueDescriptor()static com.google.protobuf.Internal.EnumLiteMap<OpenRtb.PlacementType>internalGetValueMap()static OpenRtb.PlacementTypevalueOf(int value)Deprecated.static OpenRtb.PlacementTypevalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)Returns the enum constant of this type with the specified name.static OpenRtb.PlacementTypevalueOf(String name)Returns the enum constant of this type with the specified name.static OpenRtb.PlacementType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
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 nameNullPointerException- if the argument is null
-
getNumber
public final int getNumber()
- Specified by:
getNumberin interfacecom.google.protobuf.Internal.EnumLite- Specified by:
getNumberin interfacecom.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 nameNullPointerException- 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:
getValueDescriptorin interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.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 nameNullPointerException- if the argument is null
-
-