mirror of
https://github.com/prebid/openrtb.git
synced 2026-06-14 14:06:38 +03:00
adcom1: enum types finished
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
package adcom
|
||||
|
||||
// PlaybackCessationMode represents modes for when media playback terminates.
|
||||
type PlaybackCessationMode int
|
||||
|
||||
// Modes for when media playback terminates.
|
||||
const (
|
||||
PlaybackCompletion PlaybackCessationMode = 1 // On Video Completion or when Terminated by User
|
||||
PlaybackLeavingViewport PlaybackCessationMode = 2 // On Leaving Viewport or when Terminated by User
|
||||
PlaybackFloating PlaybackCessationMode = 3 // On Leaving Viewport Continues as a Floating/Slider Unit until Video Completion or when Terminated by User
|
||||
)
|
||||
@@ -0,0 +1,14 @@
|
||||
package adcom
|
||||
|
||||
// PlaybackMethod represents media playback methods.
|
||||
type PlaybackMethod int
|
||||
|
||||
// Media playback methods.
|
||||
const (
|
||||
PlaybackPageLoadSoundOn PlaybackMethod = 1 // Initiates on Page Load with Sound On
|
||||
PlaybackPageLoadSoundOff PlaybackMethod = 2 // Initiates on Page Load with Sound Off by Default
|
||||
PlaybackClickSoundOn PlaybackMethod = 3 // Initiates on Click with Sound On
|
||||
PlaybackMouseOverSoundOn PlaybackMethod = 4 // Initiates on Mouse-Over with Sound On
|
||||
PlaybackViewportSoundOn PlaybackMethod = 5 // Initiates on Entering Viewport with Sound On
|
||||
PlaybackViewportSoundOff PlaybackMethod = 6 // Initiates on Entering Viewport with Sound Off by Default
|
||||
)
|
||||
@@ -0,0 +1,12 @@
|
||||
package adcom
|
||||
|
||||
// ProductionQuality represents content quality.
|
||||
type ProductionQuality int
|
||||
|
||||
// Options for content quality.
|
||||
// These values are defined by the IAB; refer to www.iab.com/wp-content/uploads/2015/03/long-form-video-final.pdf for more information.
|
||||
const (
|
||||
ProductionProfessional ProductionQuality = 1 // Professionally Produced
|
||||
ProductionProsumer ProductionQuality = 2 // Prosumer
|
||||
ProductionUser ProductionQuality = 3 // User Generated (UGC)
|
||||
)
|
||||
@@ -0,0 +1,11 @@
|
||||
package adcom
|
||||
|
||||
// SizeUnit represents units of height and width used by creatives, assets, and placement specifications where noted.
|
||||
type SizeUnit int
|
||||
|
||||
// Units of height and width used by creatives, assets, and placement specifications where noted.
|
||||
const (
|
||||
SizeDIP SizeUnit = 1 // Device Independent Pixels (DIPS)
|
||||
SizeIn SizeUnit = 2 // Inches
|
||||
SizeCm SizeUnit = 3 // Centimeters
|
||||
)
|
||||
@@ -0,0 +1,12 @@
|
||||
package adcom
|
||||
|
||||
// StartDelayMode represents video or audio start delay.
|
||||
type StartDelayMode int64
|
||||
|
||||
// Options for the video or audio start delay.
|
||||
// If the start delay value is greater than 0, then the position is mid-roll and the value indicates the start delay.
|
||||
const (
|
||||
StartDelayPreRoll StartDelayMode = 0 // Pre-Roll
|
||||
StartDelayGenericMidRoll StartDelayMode = -1 // Generic Mid-Roll
|
||||
StartDelayGenericPostRoll StartDelayMode = -2 // Generic Post-Roll
|
||||
)
|
||||
@@ -0,0 +1,13 @@
|
||||
package adcom
|
||||
|
||||
// VideoPlacementSubtype represents types of video placements derived largely from the IAB Digital Video Guidelines.
|
||||
type VideoPlacementSubtype int // TODO: rename?.. It's "List: Placement Subtypes - Video" in spec.
|
||||
|
||||
// Types of video placements derived largely from the IAB Digital Video Guidelines.
|
||||
const (
|
||||
VideoInStream VideoPlacementSubtype = 1 // In-Stream: Played before, during or after the streaming video content that the consumer has requested (e.g., Pre-roll, Mid-roll, Post-roll).
|
||||
VideoInBanner VideoPlacementSubtype = 2 // In-Banner: Exists within a web banner that leverages the banner space to deliver a video experience as opposed to another static or rich media format. The format relies on the existence of display ad inventory on the page for its delivery.
|
||||
VideoInArticle VideoPlacementSubtype = 3 // In-Article: Loads and plays dynamically between paragraphs of editorial content; existing as a standalone branded message.
|
||||
VideoInFeed VideoPlacementSubtype = 4 // In-Feed: Found in content, social, or product feeds.
|
||||
VideoAlwaysVisible VideoPlacementSubtype = 5 // Interstitial/Slider/Floating: Covers the entire or a portion of screen area, but is always on screen while displayed (i.e. cannot be scrolled out of view).
|
||||
)
|
||||
@@ -0,0 +1,13 @@
|
||||
package adcom
|
||||
|
||||
// VolumeNormalizationMode represents types of volume normalization modes, typically for audio.
|
||||
type VolumeNormalizationMode int
|
||||
|
||||
// Types of volume normalization modes, typically for audio.
|
||||
const (
|
||||
VolumeNormNone VolumeNormalizationMode = 0 // None
|
||||
VolumeNormAvg VolumeNormalizationMode = 1 // Ad Volume Average Normalized to Content
|
||||
VolumeNormPeak VolumeNormalizationMode = 2 // Ad Volume Peak Normalized to Content
|
||||
VolumeNormLoudNorm VolumeNormalizationMode = 3 // Ad Loudness Normalized to Content
|
||||
VolumeNormCustom VolumeNormalizationMode = 4 // Custom Volume Normalization
|
||||
)
|
||||
Reference in New Issue
Block a user