forked from prebid/prebid-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathimp_sharethrough.go
31 lines (27 loc) · 1.04 KB
/
imp_sharethrough.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
package openrtb_ext
type ExtData struct {
PBAdSlot string `json:"pbadslot"`
}
// ExtImpSharethrough defines the contract for bidrequest.imp[i].ext.sharethrough
type ExtImpSharethrough struct {
Pkey string `json:"pkey"`
Iframe bool `json:"iframe"`
IframeSize []int `json:"iframeSize"`
BidFloor float64 `json:"bidfloor"`
Data *ExtData `json:"data,omitempty"`
}
type ExtImpSharethroughResponse struct {
AdServerRequestID string `json:"adserverRequestId"`
BidID string `json:"bidId"`
Creatives []ExtImpSharethroughCreative `json:"creatives"`
}
type ExtImpSharethroughCreative struct {
AuctionWinID string `json:"auctionWinId"`
CPM float64 `json:"cpm"`
Metadata ExtImpSharethroughCreativeMetadata `json:"creative"`
}
type ExtImpSharethroughCreativeMetadata struct {
CampaignKey string `json:"campaign_key"`
CreativeKey string `json:"creative_key"`
DealID string `json:"deal_id"`
}