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
/
user.go
103 lines (91 loc) · 2.83 KB
/
user.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
package adcom1
import "encoding/json"
// User object contains information known or derived about the human user of the device (i.e., the audience for advertising).
// The user ID is a vendor-specific artifact and may be subject to rotation or other privacy policies.
// However, this user ID must be stable long enough to serve reasonably as the basis for frequency capping and retargeting.
type User struct {
// Attribute:
// id
// Type:
// string; recommended
// Definition:
// Vendor-specific ID for the user.
// At least one of id or buyeruid is strongly recommended.
ID string `json:"id,omitempty"`
// Attribute:
// buyeruid
// Type:
// string; recommended
// Definition:
// Buyer-specific ID for the user as mapped by an exchange for the buyer.
// At least one of id or buyeruid is strongly recommended.
BuyerUID string `json:"buyeruid,omitempty"`
// Attribute:
// yob
// Type:
// integer; DEPRECATED
// Definition:
// Year of birth as a 4-digit integer.
YOB int64 `json:"yob,omitempty"`
// Attribute:
// gender
// Type:
// string; DEPRECATED
// Definition:
// Gender, where “M” = male, “F” = female, “O” = known to be other (i.e., omitted is unknown).
Gender string `json:"gender,omitempty"`
// Attribute:
// keywords
// Type:
// string; DEPRECATED
// Definition:
// Comma-separated list of keywords, interests, or intent.
// 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:
// consent
// Type:
// string
// Definition:
// GDPR consent string if applicable, complying with the comply with the IAB standard Consent String Format in the Transparency and Consent Framework technical specifications.
Consent string `json:"consent,omitempty"`
// Attribute:
// geo
// Type:
// object
// Definition:
// Location of the user's home base (i.e., not necessarily their current location).
// Refer to Object: Geo.
Geo *Geo `json:"geo,omitempty"`
// Attribute:
// data
// Type:
// object array
// Definition:
// Additional user data.
// Each Data object represents a different data source.
// Refer to Object: Data.
Data []Data `json:"data,omitempty"`
// Attribute:
// eids
// Type:
// object array
// Definition:
// Extended (third-party) identifiers for this user. Refer to Object: Extended Identifiers.
EIDs []ExtendedIdentifier `json:"eids,omitempty"`
// Attribute:
// ext
// Type:
// object
// Definition:
// Optional vendor-specific extensions.
Ext json.RawMessage `json:"ext,omitempty"`
}