-
Notifications
You must be signed in to change notification settings - Fork 719
/
utils.go
45 lines (38 loc) · 1.38 KB
/
utils.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 adhese
import "github.com/prebid/openrtb/v20/openrtb2"
type AdheseOriginData struct {
Priority string `json:"priority"`
OrderProperty string `json:"orderProperty"`
AdFormat string `json:"adFormat"`
AdType string `json:"adType"`
AdspaceId string `json:"adspaceId"`
LibId string `json:"libId"`
SlotID string `json:"slotID,omitempty"`
ViewableImpressionCounter string `json:"viewableImpressionCounter"`
}
type AdheseExt struct {
Id string `json:"id"`
OrderId string `json:"orderId"`
ImpressionCounter string `json:"impressionCounter"`
Tag string `json:"tag,omitempty"`
Ext string `json:"ext"`
}
type AdheseBid struct {
Origin string `json:"origin"`
OriginData openrtb2.BidResponse `json:"originData"`
OriginInstance string `json:"originInstance,omitempty"`
Body string `json:"body,omitempty"`
Height string `json:"height"`
Width string `json:"width"`
Extension Prebid `json:"extension"`
}
type Prebid struct {
Prebid CPM `json:"prebid"`
}
type CPM struct {
Cpm CPMValues `json:"cpm"`
}
type CPMValues struct {
Amount string `json:"amount"`
Currency string `json:"currency"`
}