Skip to content

Commit 5129f80

Browse files
authored
Request to add new Video Placement support. (bsm#104)
1 parent 74f390a commit 5129f80

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

openrtb.go

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -892,3 +892,14 @@ const (
892892
CategoryTaxonomyIABContent21 CategoryTaxonomy = 5 // 5 IAB Content Category Taxonomy 2.1.
893893
CategoryTaxonomyIABContent22 CategoryTaxonomy = 6 // 6 IAB Content Category Taxonomy 2.2
894894
)
895+
896+
// VideoPlcmt represents the the various types of video placements in accordance with updated IAB Digital Video Guidelines.
897+
type VideoPlcmt int
898+
899+
// Types of video placements derived largely from the IAB Digital Video Guidelines.
900+
const (
901+
VideoPlcmtInstream VideoPlcmt = 1
902+
VideoPlcmtAccompanyingContent VideoPlcmt = 2
903+
VideoPlcmtInterstitial VideoPlcmt = 3
904+
VideoPlcmtNoContent VideoPlcmt = 4
905+
)

video.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@ type Video struct {
4545
CompanionAds []Banner `json:"companionad,omitempty"`
4646
APIs []APIFramework `json:"api,omitempty"` // List of supported API frameworks
4747
CompanionTypes []CompanionType `json:"companiontype,omitempty"`
48-
Placement VideoPlacement `json:"placement,omitempty"` // Video placement type
48+
Placement VideoPlacement `json:"placement,omitempty"` // Video placement type, DEPRECATED
49+
Plcmt VideoPlcmt `json:"plcmt,omitempty"` // Video Plcmt type ad defined in ADCOM1.0
4950
Ext json.RawMessage `json:"ext,omitempty"`
5051
}
5152

0 commit comments

Comments
 (0)