From ef5ccdda698b890f3dc4b1562297aef8143a10a5 Mon Sep 17 00:00:00 2001 From: Rourke White Date: Tue, 17 Nov 2026 13:30:42 -0800 Subject: [PATCH] Add AdPosLocked and Video.MaxSequence AdCOM 1.0 uses ad position 2 for locked, and OpenRTB 2.6 adds maxseq for dynamic video pods. Co-Authored-By: Claude Opus 5.5 --- openrtb.go | 1 + testdata/video.json | 1 + video.go | 1 + video_test.go | 1 + 4 files changed, 4 insertions(+) diff --git a/openrtb.go b/openrtb.go index 0ccd3fe..59b9d16 100644 --- a/openrtb.go +++ b/openrtb.go @@ -457,6 +457,7 @@ const ( const ( AdPosUnknown = 0 AdPosAboveFold = 1 + AdPosLocked = 2 // AdCOM 1.0; OpenRTB 2.5 had deprecated 2 AdPosBelowFold = 3 AdPosHeader = 4 AdPosFooter = 5 diff --git a/testdata/video.json b/testdata/video.json index 6f90ba3..3d76433 100644 --- a/testdata/video.json +++ b/testdata/video.json @@ -5,6 +5,7 @@ "startdelay": 0, "minduration": 5, "maxduration": 30, + "maxseq": 4, "maxextended": 30, "minbitrate": 300, "maxbitrate": 1500, diff --git a/video.go b/video.go index 2df18b5..9665ac6 100644 --- a/video.go +++ b/video.go @@ -37,6 +37,7 @@ type Video struct { BoxingAllowed *int `json:"boxingallowed,omitempty"` // If exchange publisher has rules preventing letter boxing PodID string `json:"podid,omitempty"` // Pod id unique identifier for video ad pod PodDuration int `json:"poddur,omitempty"` // Pod Duration total amount of time in seconds that advertisers may fill for a video ad pod + MaxSequence int `json:"maxseq,omitempty"` // Maximum number of ads that may be served in a dynamic video ad pod PodSequence PodSequence `json:"podseq,omitempty"` // Pod Sequence position of the video ad pod SlotInPod SlotPositionInPod `json:"slotinpod,omitempty"` // Slot Position in ad RqdDurs []int64 `json:"rqddurs,omitempty"` // Precise acceptable durations for video creatives inseconds. diff --git a/video_test.go b/video_test.go index 38d8c21..40fe835 100644 --- a/video_test.go +++ b/video_test.go @@ -24,6 +24,7 @@ func TestVideo(t *testing.T) { }, MinDuration: 5, MaxDuration: 30, + MaxSequence: 4, Protocols: []int{VideoProtoVAST2, VideoProtoVAST3}, W: 640, H: 480,