diff --git a/adcom1/playback_cessation_mode.go b/adcom1/playback_cessation_mode.go new file mode 100644 index 0000000..4d28544 --- /dev/null +++ b/adcom1/playback_cessation_mode.go @@ -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 +) diff --git a/adcom1/playback_method.go b/adcom1/playback_method.go new file mode 100644 index 0000000..5c0efab --- /dev/null +++ b/adcom1/playback_method.go @@ -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 +) diff --git a/adcom1/production_quality.go b/adcom1/production_quality.go new file mode 100644 index 0000000..8f72f4d --- /dev/null +++ b/adcom1/production_quality.go @@ -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) +) diff --git a/adcom1/size_unit.go b/adcom1/size_unit.go new file mode 100644 index 0000000..1fe8902 --- /dev/null +++ b/adcom1/size_unit.go @@ -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 +) diff --git a/adcom1/start_delay_mode.go b/adcom1/start_delay_mode.go new file mode 100644 index 0000000..8c81804 --- /dev/null +++ b/adcom1/start_delay_mode.go @@ -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 +) diff --git a/adcom1/video_placement_subtype.go b/adcom1/video_placement_subtype.go new file mode 100644 index 0000000..f1b44c2 --- /dev/null +++ b/adcom1/video_placement_subtype.go @@ -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). +) diff --git a/adcom1/volume_normalization_mode.go b/adcom1/volume_normalization_mode.go new file mode 100644 index 0000000..94b0249 --- /dev/null +++ b/adcom1/volume_normalization_mode.go @@ -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 +)