Skip to content

Commit cb4f8c1

Browse files
committed
Include Video placement.
1 parent f01a60f commit cb4f8c1

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

testdata/video.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,5 +64,6 @@
6464
"companiontype": [
6565
1,
6666
2
67-
]
68-
}
67+
],
68+
"placement": 1
69+
}

video.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ type Video struct {
4141
CompanionAd []Banner `json:"companionad,omitempty"`
4242
Api []int `json:"api,omitempty"` // List of supported API frameworks
4343
CompanionType []int `json:"companiontype,omitempty"`
44+
Placement int `json:"placement,omitempty"` // Video placement type
4445
Ext Extension `json:"ext,omitempty"`
4546
}
4647

video_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ var _ = Describe("Video", func() {
4242
},
4343
Api: []int{1, 2},
4444
CompanionType: []int{1, 2},
45+
Placement: 1,
4546
}))
4647
})
4748

0 commit comments

Comments
 (0)