forked from prebid/prebid-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathimp.go
28 lines (21 loc) · 833 Bytes
/
imp.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
package openrtb_ext
import (
"encoding/json"
)
// ExtImpPrebid defines the contract for bidrequest.imp[i].ext.prebid
type ExtImpPrebid struct {
// StoredRequest specifies which stored impression to use, if any.
StoredRequest *ExtStoredRequest `json:"storedrequest"`
// IsRewardedInventory is a signal intended for video impressions. Must be 0 or 1.
IsRewardedInventory int8 `json:"is_rewarded_inventory"`
// Bidder is the preferred approach for providing paramters to be interepreted by the bidder's adapter.
Bidder map[string]json.RawMessage `json:"bidder"`
Options *Options `json:"options,omitempty"`
}
// ExtStoredRequest defines the contract for bidrequest.imp[i].ext.prebid.storedrequest
type ExtStoredRequest struct {
ID string `json:"id"`
}
type Options struct {
EchoVideoAttrs bool `json:"echovideoattrs"`
}