This repository has been archived by the owner on Oct 6, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 61
/
Copy pathapp.go
136 lines (119 loc) · 3.17 KB
/
app.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
125
126
127
128
129
130
131
132
133
134
135
136
package openrtb2
import "encoding/json"
// 3.2.14 Object: App
//
// This object should be included if the ad supported content is a non-browser application (typically in mobile) as opposed to a website.
// A bid request must not contain both an App and a Site object.
// At a minimum, it is useful to provide an App ID or bundle, but this is not strictly required.
type App struct {
// Attribute:
// id
// Type:
// string; recommended
// Description:
// Exchange-specific app ID.
ID string `json:"id,omitempty"`
// Attribute:
// name
// Type:
// string
// Description:
// App name (may be aliased at the publisher’s request).
Name string `json:"name,omitempty"`
// Attribute:
// bundle
// Type:
// string
// Description:
// A platform-specific application identifier intended to be
// unique to the app and independent of the exchange. On
// Android, this should be a bundle or package name (e.g.,
// com.foo.mygame). On iOS, it is typically a numeric ID.
Bundle string `json:"bundle,omitempty"`
// Attribute:
// domain
// Type:
// string
// Description:
// Domain of the app (e.g., “mygame.foo.com”).
Domain string `json:"domain,omitempty"`
// Attribute:
// storeurl
// Type:
// string
// Description:
// App store URL for an installed app; for IQG 2.1 compliance.
StoreURL string `json:"storeurl,omitempty"`
// Attribute:
// cat
// Type:
// string array
// Description:
// Array of IAB content categories of the app. Refer to List 5.1
Cat []string `json:"cat,omitempty"`
// Attribute:
// sectioncat
// Type:
// string array
// Description:
// Array of IAB content categories that describe the current
// section of the app. Refer to List 5.1.
SectionCat []string `json:"sectioncat,omitempty"`
// Attribute:
// pagecat
// Type:
// string array
// Description:
// Array of IAB content categories that describe the current page
// or view of the app. Refer to List 5.1.
PageCat []string `json:"pagecat,omitempty"`
// Attribute:
// ver
// Type:
// string
// Description:
// Application version.
Ver string `json:"ver,omitempty"`
// Attribute:
// privacypolicy
// Type:
// integer
// Description:
// Indicates if the app has a privacy policy, where 0 = no, 1 = yes.
PrivacyPolicy int8 `json:"privacypolicy,omitempty"`
// Attribute:
// paid
// Type:
// integer
// Description:
// 0 = app is free, 1 = the app is a paid version.
Paid int8 `json:"paid,omitempty"`
// Attribute:
// publisher
// Type:
// object
// Description:
// Details about the Publisher (Section 3.2.15) of the app.
Publisher *Publisher `json:"publisher,omitempty"`
// Attribute:
// content
// Type:
// object
// Description:
// Details about the Content (Section 3.2.16) within the app
Content *Content `json:"content,omitempty"`
// Attribute:
// keywords
// Type:
// string
// Description:
// Comma separated list of keywords about the app.
Keywords string `json:"keywords,omitempty"`
// Attribute:
// ext
// Type:
// object
// Description:
// Placeholder for exchange-specific extensions to OpenRTB.
Ext json.RawMessage `json:"ext,omitempty"`
}