Skip to content

Commit ed51fc7

Browse files
authored
Merge pull request #19 from bx2/ft/versions-support
Exposes BuyerID and BuyerUID for OpenRTB 2.2 & 2.3 compatibility
2 parents 6b2ac63 + a95af66 commit ed51fc7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

openrtb.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,8 @@ type Geo struct {
210210
// frequency capping and retargeting.
211211
type User struct {
212212
ID string `json:"id,omitempty"` // Unique consumer ID of this user on the exchange
213-
BuyerUID string `json:"buyeruid,omitempty"` // Buyer-specific ID for the user as mapped by the exchange for the buyer. At least one of buyeruid or id is recommended.
213+
BuyerID string `json:"buyerid,omitempty"` // Buyer-specific ID for the user as mapped by the exchange for the buyer. At least one of buyeruid/buyerid or id is recommended. Valid for OpenRTB 2.3.
214+
BuyerUID string `json:"buyeruid,omitempty"` // Buyer-specific ID for the user as mapped by the exchange for the buyer. Same as BuyerID but valid for OpenRTB 2.2.
214215
YOB int `json:"yob,omitempty"` // Year of birth as a 4-digit integer.
215216
Gender string `json:"gender,omitempty"` // Gender ("M": male, "F" female, "O" Other)
216217
Keywords string `json:"keywords,omitempty"` // Comma separated list of keywords, interests, or intent

0 commit comments

Comments
 (0)