Skip to content

Commit 569894c

Browse files
authored
update User object to OpenRTB 2.6 for EIDs (#45)
1 parent ac6483d commit 569894c

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

openrtb.go

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -728,6 +728,8 @@ type User struct {
728728
CustomData string `json:"customdata,omitempty"` // Optional feature to pass bidder data that was set in the exchange's cookie. The string must be in base85 cookie safe characters and be in any format. Proper JSON encoding must be used to include "escaped" quotation marks.
729729
Geo *Geo `json:"geo,omitempty"`
730730
Data []Data `json:"data,omitempty"`
731+
Consent string `json:"consent,omitempty"` // GDPR TCF consent string
732+
EIDs []EID `json:"eids,omitempty"`
731733
Ext UserExtension `json:"ext,omitempty"`
732734
}
733735

@@ -752,6 +754,21 @@ type Segment struct {
752754
Ext Extension `json:"ext,omitempty"`
753755
}
754756

757+
// EID (Extended ID) support in the OpenRTB specification allows buyers to use audience data in real-time
758+
// bidding. This object can contain one or more UIDs from a single source or a technology provider.
759+
type EID struct {
760+
Source string `json:"source,omitempty"` // Source or technology provider responsible for the set of included IDs. Expressed as a top-level domain.
761+
UIDs []UID `json:"uids,omitempty"` // Array of extended ID UID objects from the given source.
762+
Ext Extension `json:"ext,omitempty"`
763+
}
764+
765+
// UID objects contain a single user identifier provided as part of extended identifiers.
766+
type UID struct {
767+
ID string `json:"id,omitempty"` // The identifier for the user.
768+
AgentType int `json:"atype,omitempty"` // Type of user agent the ID is from.
769+
Ext Extension `json:"ext,omitempty"`
770+
}
771+
755772
// Regulations object contains any legal, governmental, or industry regulations that apply to the request. The
756773
// coppa flag signals whether or not the request falls under the United States Federal Trade Commission's
757774
// regulations for the United States Children's Online Privacy Protection Act ("COPPA").

0 commit comments

Comments
 (0)