forked from prebid/openrtb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
site.go
124 lines (108 loc) · 3.08 KB
/
site.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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
package adcom1
import "encoding/json"
// Site object is used to define an ad supported website, in contrast to a non-browser application, for example.
// As a derived class, a Site object inherits all DistributionChannel attributes and adds those defined below.
type Site struct {
DistributionChannel
// Attribute:
// domain
// Type:
// string
// Definition:
// Domain of the site (e.g., “mysite.foo.com”).
Domain string `json:"domain,omitempty"`
// Attribute:
// cat
// Type:
// string array
// Definition:
// Array of content categories describing the site using IDs from the taxonomy indicated in cattax.
Cat []string `json:"cat,omitempty"`
// Attribute:
// sectcat
// Type:
// string array
// Definition:
// Array of content categories describing the current section of the site using IDs from the taxonomy indicated in cattax.
SectCat []string `json:"sectcat,omitempty"`
// Attribute:
// pagecat
// Type:
// string array
// Definition:
// Array of content categories describing the current page or view of the site using IDs from the taxonomy indicated in cattax.
PageCat []string `json:"pagecat,omitempty"`
// Attribute:
// cattax
// Type:
// integer
// Definition:
// The taxonomy in use for the cat, sectcat and pagecat attributes.
// Refer to List: Category Taxonomies.
CatTax CategoryTaxonomy `json:"cattax,omitempty"`
// Attribute:
// privpolicy
// Type:
// integer
// Definition:
// Indicates if the site has a privacy policy, where 0 = no, 1 = yes.
PrivPolicy int8 `json:"privpolicy,omitempty"`
// Attribute:
// keywords
// Type:
// string; DEPRECATED
// Definition:
// Comma-separated list of keywords about the app.
// Only one of 'keywords' or 'kwarray' may be present.
// NOTE: this field is deprecated, use 'kwarray' instead.
Keywords string `json:"keywords,omitempty"`
// Attribute:
// kwarray
// Type:
// string array
// Definition:
// Array of keywords about the site. Only one of 'keywords' or 'kwarray' may be present.
KwArray []string `json:"kwarray,omitempty"`
// Attribute:
// page
// Type:
// string
// Definition:
// URL of the page within the site.
Page string `json:"page,omitempty"`
// Attribute:
// ref
// Type:
// string
// Definition:
// Referrer URL that caused navigation to the current page.
Ref string `json:"ref,omitempty"`
// Attribute:
// search
// Type:
// string
// Definition:
// Search string that caused navigation to the current page.
Search string `json:"search,omitempty"`
// Attribute:
// mobile
// Type:
// integer
// Definition:
// Indicates if the site has been programmed to optimize layout when viewed on mobile devices, where 0 = no, 1 = yes.
Mobile int8 `json:"mobile,omitempty"`
// Attribute:
// amp
// Type:
// integer
// Definition:
// Indicates if the page is built with AMP HTML, where 0 = no, 1 = yes.
AMP int8 `json:"amp,omitempty"`
// Attribute:
// ext
// Type:
// object
// Definition:
// Optional vendor-specific extensions.
Ext json.RawMessage `json:"ext,omitempty"`
}