Skip to content

Commit

Permalink
bidrequest: Add new fields related to seats from 2.5 Spec
Browse files Browse the repository at this point in the history
  • Loading branch information
emaraschio committed Mar 13, 2017
1 parent 1ca3a54 commit 6b3970b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 2 additions & 0 deletions bidrequest.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ type BidRequest struct {
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.
TMax int `json:"tmax,omitempty"` // Maximum amount of time in milliseconds to submit a bid
WSeat []string `json:"wseat,omitempty"` // Array of buyer seats allowed to bid on this auction
BSeat []string `json:"bseat,omitempty"` // Array of buyer seats blocked to bid on this auction
WLang []string `json:"wlang,omitempty"` // Array of languages for creatives using ISO-639-1-alpha-2
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
Cur []string `json:"cur,omitempty"` // Array of allowed currencies
Bcat []string `json:"bcat,omitempty"` // Blocked Advertiser Categories.
Expand Down
10 changes: 9 additions & 1 deletion testdata/breq.native.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,13 @@
},
"user": {
"id": "55816b39711f9b5acf3b90e313ed29e51665623f"
}
},
"wseat": [
"771",
"772"
],
"bseat": [
"800",
"773"
]
}

0 comments on commit 6b3970b

Please sign in to comment.