forked from PubMatic-OpenWrap/prebid-openrtb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
data_asset_type.go
154 lines (140 loc) · 3.55 KB
/
data_asset_type.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
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
package native1
// 7.4 Data Asset Types
//
// Below is a list of common asset element types of native advertising at the time of writing this spec.
// This list is non-exhaustive and intended to be extended by the buyers and sellers as the format evolves.
//
// An implementing exchange may not support all asset variants or introduce new ones unique to that system.
type DataAssetType int64
const (
// Type ID:
// 1
// Name:
// sponsored
// Description:
// Sponsored By message where response should contain the brand name of the sponsor.
// Format:
// text
// Recommendations:
// Required. Max 25 or longer
DataAssetTypeSponsored DataAssetType = 1
// Type ID:
// 2
// Name:
// desc
// Description:
// Descriptive text associated with the product or service being advertised.
// Longer length of text in response may be truncated or ellipsed by th exchange.
// Format:
// text
// Recommendations:
// Recommended. Max 140 or longer.
DataAssetTypeDesc DataAssetType = 2
// Type ID:
// 3
// Name:
// rating
// Description:
// Rating of the product being offered to the user.
// For example an app’s rating in an app store from 0-5.
// Format:
// number formatted as string
// Recommendations:
// Optional. 0-5 integer formatted as string.
DataAssetTypeRating DataAssetType = 3
// Type ID:
// 4
// Name:
// likes
// Description:
// Number of social ratings or “likes” of the product being offered to the user.
// Format:
// number formatted as string
DataAssetTypeLikes DataAssetType = 4
// Type ID:
// 5
// Name:
// downloads
// Description:
// Number downloads/installs of this product
// Format:
// number formatted as string
DataAssetTypeDownloads DataAssetType = 5
// Type ID:
// 6
// Name:
// price
// Description:
// Price for product / app / in-app purchase.
// Value should include currency symbol in localised format.
// Format:
// number formatted as string
DataAssetTypePrice DataAssetType = 6
// Type ID:
// 7
// Name:
// saleprice
// Description:
// Sale price that can be used together with price to indicate a discounted price compared to a regular price.
// Value should include currency symbol in localised format.
// Format:
// number formatted as string
DataAssetTypeSalePrice DataAssetType = 7
// Type ID:
// 8
// Name:
// phone
// Description:
// Phone number formatted
// Format:
// string
DataAssetTypePhone DataAssetType = 8
// Type ID:
// 9
// Name:
// address
// Description:
// Address
// Format:
// text
DataAssetTypeAddress DataAssetType = 9
// Type ID:
// 10
// Name:
// desc2
// Description:
// Additional descriptive text associated with the product or service being advertised
// Format:
// text
DataAssetTypeDesc2 DataAssetType = 10
// Type ID:
// 11
// Name:
// displayurl
// Description:
// Display URL for the text ad.
// To be used when sponsoring entity doesn’t own the content.
// IE sponsored by BRAND on SITE (where SITE is transmitted in this field).
// Format:
// text
DataAssetTypeDispayURL DataAssetType = 11
// Type ID:
// 12
// Name:
// ctatext
// Dewscription:
// CTA description - descriptive text describing a ‘call to action’ button for the destination URL.
// Format:
// text
// Recommendations:
// Optional. Max 15 or longer.
DataAssetTypeCTAText DataAssetType = 12
// Type ID:
// 500+
// Name:
// XXX
// Description:
// Reserved for Exchange specific usage numbered above 500
// Format:
// Unknown
)