Skip to content

Commit 7dda58d

Browse files
authored
Add ortb 2.6 features to video object (bsm#101)
1 parent 4cbc130 commit 7dda58d

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed

openrtb.go

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -842,3 +842,24 @@ type Format struct {
842842
WidthMin int `json:"wmin,omitempty"` // The minimum width in device independent pixels (DIPS) at which the ad will be displayed the size is expressed as a ratio.
843843
Ext json.RawMessage `json:"ext,omitempty"`
844844
}
845+
846+
// PodSequence identifies the pod sequence field, for use in video content streams with one or more ad pods as defined in Adcom1.0
847+
type PodSequence int
848+
849+
// PodSequence options as defined in Adcom1.0
850+
const (
851+
PodSeqLast PodSequence = -1 // Last pod in the content stream.
852+
PodSeqAny PodSequence = 0 // Any pod in the content stream.
853+
PodSeqFirst PodSequence = 1 // First pod in the content stream.
854+
)
855+
856+
// SlotPositionInPod identifies the slot position in pod field, for use in video ad pods as defined in Adcom1.0
857+
type SlotPositionInPod int
858+
859+
// SlotPositionInPod options as defined in Adcom1.0
860+
const (
861+
SlotPosLast SlotPositionInPod = -1 // Last ad in the pod.
862+
SlotPosAny SlotPositionInPod = 0 // Any ad in the pod.
863+
SlotPosFirst SlotPositionInPod = 1 // First ad in the pod.
864+
SlotPosFirstOrLast SlotPositionInPod = 2 // First or Last ad in the pod.
865+
)

video.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,12 @@ type Video struct {
3333
MinBitrate int `json:"minbitrate,omitempty"` // Minimum bit rate in Kbps
3434
MaxBitrate int `json:"maxbitrate,omitempty"` // Maximum bit rate in Kbps
3535
BoxingAllowed *int `json:"boxingallowed,omitempty"` // If exchange publisher has rules preventing letter boxing
36+
PodID string `json:"podid,omitempty"` // Pod id unique identifier for video ad pod
37+
PodDuration int `json:"poddur,omitempty"` // Pod Duration total amount of time in seconds that advertisers may fill for a video ad pod
38+
PodSequence PodSequence `json:"podseq,omitempty"` // Pod Sequence position of the video ad pod
39+
SlotInPod SlotPositionInPod `json:"slotinpod,omitempty"` // Slot Position in ad
40+
RqdDurs []int64 `json:"rqddurs,omitempty"` // Precise acceptable durations for video creatives inseconds.
41+
MinCPMPerSecond float64 `json:"mincpmpersec,omitempty"` // Minimum CPM per second. This is a price floor for the portion of a video ad pod
3642
PlaybackMethods []VideoPlayback `json:"playbackmethod,omitempty"` // List of allowed playback methods
3743
Delivery []ContentDelivery `json:"delivery,omitempty"` // List of supported delivery methods
3844
Position AdPosition `json:"pos,omitempty"` // Ad Position

0 commit comments

Comments
 (0)