-
Notifications
You must be signed in to change notification settings - Fork 726
/
imp_pubmatic.go
25 lines (21 loc) · 1021 Bytes
/
imp_pubmatic.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
package openrtb_ext
import "encoding/json"
// ExtImpPubmatic defines the contract for bidrequest.imp[i].ext.prebid.bidder.pubmatic
// PublisherId is mandatory parameters, others are optional parameters
// AdSlot is identifier for specific ad placement or ad tag
// Keywords is bid specific parameter,
// WrapExt needs to be sent once per bid request
type ExtImpPubmatic struct {
PublisherId string `json:"publisherId"`
AdSlot string `json:"adSlot"`
Dctr string `json:"dctr"`
PmZoneID string `json:"pmzoneid"`
WrapExt json.RawMessage `json:"wrapper,omitempty"`
Keywords []*ExtImpPubmaticKeyVal `json:"keywords,omitempty"`
Kadfloor string `json:"kadfloor,omitempty"`
}
// ExtImpPubmaticKeyVal defines the contract for bidrequest.imp[i].ext.prebid.bidder.pubmatic.keywords[i]
type ExtImpPubmaticKeyVal struct {
Key string `json:"key,omitempty"`
Values []string `json:"value,omitempty"`
}