forked from PubMatic-OpenWrap/prebid-openrtb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
uid.go
40 lines (34 loc) · 993 Bytes
/
uid.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
package openrtb2
import (
"encoding/json"
"github.com/prebid/openrtb/v17/adcom1"
)
// 3.2.28 Object: UID
//
// This object contains a single user identifier provided as part of extended identifiers.
// The exchange should ensure that business agreements allow for the sending of this data.
type UID struct {
// Attribute:
// id
// Type:
// string
// Description:
// The identifier for the user.
ID string `json:"id,omitempty"`
// Attribute:
// atype
// Type:
// object array
// Description:
// Type of user agent the ID is from. It is highly recommended to set this, as
// many DSPs separate app-native IDs from browser-based IDs and require a type
// value for ID resolution. Refer to List: Agent Types in AdCOM 1.0
AType adcom1.AgentType `json:"atype,omitempty"`
// Attribute:
// ext
// Type:
// object
// Description:
// Placeholder for advertising-system specific extensions to this object.
Ext json.RawMessage `json:"ext,omitempty"`
}