Skip to content

Commit

Permalink
Merge pull request bsm#67 from EastResident/feature/vcm
Browse files Browse the repository at this point in the history
Add "vcm" attribute to banner object
  • Loading branch information
dim authored Oct 28, 2019
2 parents b972a5c + 75ebdae commit f0c31f9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions banner.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,6 @@ type Banner struct {
TopFrame int `json:"topframe,omitempty"` // Default: 0 ("1": Delivered in top frame, "0": Elsewhere)
ExpDir []int `json:"expdir,omitempty"` // Specify properties for an expandable ad
Api []int `json:"api,omitempty"` // List of supported API frameworks
Vcm int `json:"vcm,omitempty"` // Represents the relationship with video. 0 = concurrent, 1 = end-card
Ext json.RawMessage `json:"ext,omitempty"`
}
1 change: 1 addition & 0 deletions banner_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ var _ = Describe("Banner", func() {
BType: []int{BannerTypeFrame},
BAttr: []int{CreativeAttributeWindowsDialogOrAlert},
Api: []int{APIFrameworkMRAID1},
Vcm: 1,
}))
})

Expand Down
3 changes: 2 additions & 1 deletion testdata/banner.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,6 @@
],
"api": [
3
]
],
"vcm": 1
}

0 comments on commit f0c31f9

Please sign in to comment.