Skip to content

Commit f0c31f9

Browse files
authored
Merge pull request bsm#67 from EastResident/feature/vcm
Add "vcm" attribute to banner object
2 parents b972a5c + 75ebdae commit f0c31f9

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

banner.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,6 @@ type Banner struct {
2424
TopFrame int `json:"topframe,omitempty"` // Default: 0 ("1": Delivered in top frame, "0": Elsewhere)
2525
ExpDir []int `json:"expdir,omitempty"` // Specify properties for an expandable ad
2626
Api []int `json:"api,omitempty"` // List of supported API frameworks
27+
Vcm int `json:"vcm,omitempty"` // Represents the relationship with video. 0 = concurrent, 1 = end-card
2728
Ext json.RawMessage `json:"ext,omitempty"`
2829
}

banner_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ var _ = Describe("Banner", func() {
2121
BType: []int{BannerTypeFrame},
2222
BAttr: []int{CreativeAttributeWindowsDialogOrAlert},
2323
Api: []int{APIFrameworkMRAID1},
24+
Vcm: 1,
2425
}))
2526
})
2627

testdata/banner.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,6 @@
1010
],
1111
"api": [
1212
3
13-
]
13+
],
14+
"vcm": 1
1415
}

0 commit comments

Comments
 (0)