Skip to content

Commit a962edc

Browse files
authored
Merge pull request #29 from connectedinteractive/2.4fix
openrtb 2.4 fixes
2 parents 7f86811 + d07cb7c commit a962edc

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

audio.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ var (
1212

1313
// The "audio" object must be included directly in the impression object
1414
type Audio struct {
15-
Mimes []string `json:"mimes,omitempty"` // Content MIME types supported.
15+
Mimes []string `json:"mimes"` // Content MIME types supported.
1616
MinDuration int `json:"minduration,omitempty"` // Minimum video ad duration in seconds
1717
MaxDuration int `json:"maxduration,omitempty"` // Maximum video ad duration in seconds
1818
Protocols []int `json:"protocols,omitempty"` // Video bid response protocols
@@ -24,6 +24,7 @@ type Audio struct {
2424
MaxBitrate int `json:"maxbitrate,omitempty"` // Maximum bit rate in Kbps
2525
Delivery []int `json:"delivery,omitempty"` // List of supported delivery methods
2626
CompanionAd []Banner `json:"companionad,omitempty"`
27+
API []int `json:"api,omitempty"`
2728
CompanionType []int `json:"companiontype,omitempty"`
2829
MaxSequence int `json:"maxseq,omitempty"` // The maximumnumber of ads that canbe played in an ad pod.
2930
Feed int `json:"feed,omitempty"` // Type of audio feed.

audio_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ var _ = Describe("Audio", func() {
3131
{W: 300, H: 250, ID: "1234567893-1", Pos: 1, BAttr: []int{13, 14}, ExpDir: []int{ExpDirRight, ExpDirDown}},
3232
{W: 728, H: 90, ID: "1234567893-2", Pos: 1, BAttr: []int{13, 14}},
3333
},
34+
API: []int{1, 2},
3435
CompanionType: []int{1, 2},
3536
}))
3637
})

banner.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ package openrtb
99
type Banner struct {
1010
W int `json:"w,omitempty"` // Width
1111
H int `json:"h,omitempty"` // Height
12-
Format *Format `json:"format,omitempty"` //Array of format objects representing the banner sizes permitted.
12+
Format []Format `json:"format,omitempty"` //Array of format objects representing the banner sizes permitted.
1313
WMax int `json:"wmax,omitempty"` // Width maximum DEPRECATED
1414
HMax int `json:"hmax,omitempty"` // Height maximum DEPRECATED
1515
WMin int `json:"wmin,omitempty"` // Width minimum DEPRECATED

0 commit comments

Comments
 (0)