forked from mxmCherry/openrtb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
seat_bid.go
45 lines (39 loc) · 1.29 KB
/
seat_bid.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
package openrtb
import "encoding/json"
// 4.2.2 Object: SeatBid
//
// A bid response can contain multiple SeatBid objects, each on behalf of a different bidder seat and each containing one or more individual bids.
// If multiple impressions are presented in the request, the group attribute can be used to specify if a seat is willing to accept any impressions that it can win (default) or if it is only interested in winning any if it can win them all as a group.
type SeatBid struct {
// Attribute:
// bid
// Type:
// object array; required
// Description:
// Array of 1+ Bid objects (Section 4.2.3) each related to an
// impression. Multiple bids can relate to the same impression.
Bid []Bid `json:"bid"`
// Attribute:
// seat
// Type:
// string
// Description:
// ID of the buyer seat (e.g., advertiser, agency) on whose behalf
// this bid is made.
Seat string `json:"seat,omitempty"`
// Attribute:
// group
// Type:
// integer; default 0
// Description:
// 0 = impressions can be won individually; 1 = impressions must
// be won or lost as a group.
Group int8 `json:"group,omitempty"`
// Attribute:
// ext
// Type:
// object
// Description:
// Placeholder for bidder-specific extensions to OpenRTB.
Ext json.RawMessage `json:"ext,omitempty"`
}