Package com.iab.omid.library.adsession
Enum Class ImpressionType
- All Implemented Interfaces:
Serializable
,Comparable<ImpressionType>
,Constable
The criterion for an ad session's OMID impression event.
Declaring an impression type makes it easier to understand discrepancies between measurers
of the ad session, since many metrics depend on impressions.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe integration is using audible criteria (2 continuous second of media playback with non-zero volume) for the OMID impression.The integration is using begin-to-render criteria for the OMID impression.Impression type will be set by JavaScript session script.The integration is using count-on-download criteria for the OMID impression.The integration is using one-pixel criteria (when the creative has at least 1 visible pixel on screen) for the OMID impression.The integration's criteria uses none of the above criteria for the OMID impression.The integration is not declaring the criteria for the OMID impression.The integration is using viewable criteria (1 second for display, 2 seconds while playing for video, and at least 50% of the creative is visible) for the OMID impression. -
Method Summary
Modifier and TypeMethodDescriptiontoString()
static ImpressionType
Returns the enum constant of this class with the specified name.static ImpressionType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
DEFINED_BY_JAVASCRIPT
Impression type will be set by JavaScript session script. -
UNSPECIFIED
The integration is not declaring the criteria for the OMID impression. This is the default impression type for OMID 1.2 and for integrations that don't set an impression type. -
LOADED
The integration is using count-on-download criteria for the OMID impression. -
BEGIN_TO_RENDER
The integration is using begin-to-render criteria for the OMID impression. -
ONE_PIXEL
The integration is using one-pixel criteria (when the creative has at least 1 visible pixel on screen) for the OMID impression. -
VIEWABLE
The integration is using viewable criteria (1 second for display, 2 seconds while playing for video, and at least 50% of the creative is visible) for the OMID impression. -
AUDIBLE
The integration is using audible criteria (2 continuous second of media playback with non-zero volume) for the OMID impression. -
OTHER
The integration's criteria uses none of the above criteria for the OMID impression.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
toString
- Overrides:
toString
in classEnum<ImpressionType>
-