Skip to content

Commit 6b3970b

Browse files
committed
bidrequest: Add new fields related to seats from 2.5 Spec
1 parent 1ca3a54 commit 6b3970b

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

bidrequest.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ type BidRequest struct {
2323
AuctionType int `json:"at"` // Auction type, where 1 = First Price, 2 = Second Price Plus. Exchange-specific auction types can be defined using values greater than 500.
2424
TMax int `json:"tmax,omitempty"` // Maximum amount of time in milliseconds to submit a bid
2525
WSeat []string `json:"wseat,omitempty"` // Array of buyer seats allowed to bid on this auction
26+
BSeat []string `json:"bseat,omitempty"` // Array of buyer seats blocked to bid on this auction
27+
WLang []string `json:"wlang,omitempty"` // Array of languages for creatives using ISO-639-1-alpha-2
2628
AllImps int `json:"allimps,omitempty"` // Flag to indicate whether exchange can verify that all impressions offered represent all of the impressions available in context, Default: 0
2729
Cur []string `json:"cur,omitempty"` // Array of allowed currencies
2830
Bcat []string `json:"bcat,omitempty"` // Blocked Advertiser Categories.

testdata/breq.native.json

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,5 +43,13 @@
4343
},
4444
"user": {
4545
"id": "55816b39711f9b5acf3b90e313ed29e51665623f"
46-
}
46+
},
47+
"wseat": [
48+
"771",
49+
"772"
50+
],
51+
"bseat": [
52+
"800",
53+
"773"
54+
]
4755
}

0 commit comments

Comments
 (0)