-
Notifications
You must be signed in to change notification settings - Fork 29
/
Copy pathdooh.go
89 lines (77 loc) · 2.09 KB
/
dooh.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
package openrtb2
import (
"encoding/json"
"github.com/prebid/openrtb/v20/adcom1"
)
// Object: DOOH
//
// This object should be included if the ad supported content is a Digital Out-Of-Home screen.
// A bid request with a DOOH object must not contain a site or app object.
// At a minimum, it is useful to provide id and/or venuetype, but this is not strictly required.
type DOOH struct {
// Attribute:
// id
// Type:
// string; recommended
// Description:
// Exchange provided id for a placement or logical grouping of placements.
ID string `json:"id,omitempty"`
// Attribute:
// name
// Type:
// string
// Description:
// Name of the DOOH placement.
Name string `json:"name,omitempty"`
// Attribute:
// venuetype
// Type:
// string, array
// Description:
// The type of out-of-home venue. The taxonomy to be used is defined by
// the venuetax field. If no venuetax field is supplied, The OpenOOH
// Venue Taxonomy is assumed.
VenueType []string `json:"venuetype,omitempty"`
// Attribute:
// venuetypetax
// Type:
// integer; default 1
// Description:
// The venue taxonomy in use. Refer to List: DOOH Venue Taxonomies
VenueTypeTax *adcom1.DOOHVenueTaxonomy `json:"venuetypetax,omitempty"`
// Attribute:
// publisher
// Type:
// object
// Description:
// Details about the publisher of the placement.
Publisher *Publisher `json:"publisher,omitempty"`
// Attribute:
// domain
// Type:
// string
// Description:
// Domain of the inventory owner (e.g., “mysite.foo.com”)
Domain string `json:"domain,omitempty"`
// Attribute:
// keywords
// Type:
// string
// Description:
// Comma separated list of keywords about the DOOH placement.
Keywords string `json:"keywords,omitempty"`
// Attribute:
// content
// Type:
// object
// Description:
// Details about the Content within the DOOH placement.
Content *Content `json:"content,omitempty"`
// Attribute:
// ext
// Type:
// object
// Description:
// Placeholder for exchange-specific extensions to OpenRTB.
Ext json.RawMessage `json:"ext,omitempty"`
}