-
Notifications
You must be signed in to change notification settings - Fork 34
Expand file tree
/
Copy pathsite.go
More file actions
177 lines (156 loc) · 4.68 KB
/
site.go
File metadata and controls
177 lines (156 loc) · 4.68 KB
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
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
package openrtb2
import (
"encoding/json"
"github.com/prebid/openrtb/v20/adcom1"
)
// Object: Site
//
// This object should be included if the ad supported content is a website as opposed to a non-browser application or Digital Out of Home (DOOH) inventory. .
// A bid request must not contain more than one of a `Site`, `App` or `DOOH` object.
// At a minimum, it is useful to provide a site ID or page URL, but this is not strictly required.
type Site struct {
// Attribute:
// id
// Type:
// string; recommended
// Description:
// Exchange-specific site ID.
ID string `json:"id,omitempty"`
// Attribute:
// name
// Type:
// string
// Description:
// Site name (may be aliased at the publisher’s request).
Name string `json:"name,omitempty"`
// Attribute:
// domain
// Type:
// string
// Description:
// Domain of the site (e.g., “mysite.foo.com”).
Domain string `json:"domain,omitempty"`
// Attribute:
// cattax
// Type:
// integer; default 1
// Description:
// The taxonomy in use. Refer to the AdCOM list List: Category
// Taxonomies for values. If no cattax field is supplied IAB Content
// Category Taxonomy 1.0 is assumed.
CatTax adcom1.CategoryTaxonomy `json:"cattax,omitempty"`
// Attribute:
// cat
// Type:
// string array
// Description:
// Array of IABTL content categories of the site.
// The taxonomy to be used is defined by the cattax field.
Cat []string `json:"cat,omitempty"`
// Attribute:
// sectioncat
// Type:
// string array
// Description:
// Array of IABTL content categories that describe the current
// section of the site. The taxonomy to be used is defined by
// the cattax field.
SectionCat []string `json:"sectioncat,omitempty"`
// Attribute:
// pagecat
// Type:
// string array
// Description:
// Array of IABTL content categories that describe the current
// page or view of the site.
// The taxonomy to be used is defined by the cattax field.
PageCat []string `json:"pagecat,omitempty"`
// Attribute:
// page
// Type:
// string
// Description:
// URL of the page where the impression will be shown.
Page string `json:"page,omitempty"`
// Attribute:
// ref
// Type:
// string
// Description:
// Referrer URL that caused navigation to the current page
Ref string `json:"ref,omitempty"`
// Attribute:
// search
// Type:
// string
// Description:
// Search string that caused navigation to the current page.
Search string `json:"search,omitempty"`
// Attribute:
// mobile
// Type:
// integer
// Description:
// 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:
// privacypolicy
// Type:
// integer
// Description:
// Indicates if the site has a privacy policy, where 0 = no, 1 = yes.
PrivacyPolicy *int8 `json:"privacypolicy,omitempty"`
// Attribute:
// publisher
// Type:
// object
// Description:
// Details about the Publisher (Section 3.2.15) of the site.
Publisher *Publisher `json:"publisher,omitempty"`
// Attribute:
// content
// Type:
// object
// Description:
// Details about the Content (Section 3.2.16) within the site.
Content *Content `json:"content,omitempty"`
// Attribute:
// keywords
// Type:
// string
// Description:
// Comma separated list of keywords about the site. Only one of
// ‘keywords’ or ‘kwarray’ may be present.
Keywords string `json:"keywords,omitempty"`
// Attribute:
// kwarray
// Type:
// string
// Description:
// Array of keywords about the site. Only one of ‘keywords’ or
// ‘kwarray’ may be present.
KwArray []string `json:"kwarray,omitempty"`
// Attribute:
// inventorypartnerdomain
// Type:
// string
// Description:
// A domain to be used for inventory authorization in the case of inventory
// sharing arrangements between a site owner and content owner. This field
// is typically used by authorization crawlers to establish the domain of
// the content owner, who has the right to monetize some portion of ad
// inventory within the site. The content owner's domain should be listed
// in the site owner's ads.txt file as an inventorypartnerdomain. Authorization
// for supply from the inventorypartnerdomain will be published in the ads.txt
// file on the root of that domain. Refer to the ads.txt 1.1 spec for more
// details.
InventoryPartnerDomain string `json:"inventorypartnerdomain,omitempty"`
// Attribute:
// ext
// Type:
// object
// Description:
// Placeholder for exchange-specific extensions to OpenRTB.
Ext json.RawMessage `json:"ext,omitempty"`
}