User Object

Note

Fields marked with asterisk (*) are optional.

User Object Properties
Value Type Description
id* string Unique BidSwitch ID of this user, for example, 252eb154-b3e5-473f-bad8-9b6d7f8646e5.
buyeruid* string The Buyer user ID as mapped by BidSwitch for the DSP. For in-app traffic the lowercase IDFA, or Android ID is used. For example, "38f72eaf-5d6f-4143-824f-deaf753d7239".
suid* string Unique Supplier ID of the user if the BidSwitch user ID is unknown for some reason, for example, "252eb154-b3e5-473f-bad8-9b6d7f8646e5".
keywords* string Comma separated list of keywords, interests, or intent, for example, Cars, sports, vacation
yob* integer Year of birth as a 4-digit integer, for example, 1977
gender* string

Specifies the user gender, for example, "F"

  • "M" = Male
  • "F" = Female
  • "O" = Known to be other, or omitted if unknown
data* array of objects Additional data. Each data object represents a different data source, for more information, see the Data Object section.
ext* object For more information, see the User Ext Object Properties section.

User Ext Object Properties

User Ext Object Properties
Value Type Description
ug integer

User group set up for the target user during cookie syncing, for example 1. This takes the following values:

  • 0: unmatched user
  • 1: matched user
  • 2-6: custom user group.
cookie_age* integer Number of days since the user cookie has been dropped, for example, 10
digitrust* object Container object for the DigiTrust ID and related attributes, see the DigiTrust Object object for more details.
google_consent* array of integers Set of IDs corresponding to providers for whom the publisher has provided user consent using Google vendor list. A mapping of provider ID to provider name is posted at https://storage.googleapis.com/adx-rtb-dictionaries/providers.csv
consent* string

The binary encoding scheme that is passed in base64 URL/web safe format known as daisybit, e.g. "Y29uc2VudCBkYXRh"

The data stored in the consent string is divided into 3 parts: metadata, the purposes for which the user has given consent, and to which vendors this consent was given.

The Buyer should use the information in the consent array to ascertain which vendors and for which purposes the user gave consent.

  • If the user has not given consent, then do not respond with an ad which utilises user information and neither access nor store information on the user’s device e.g. cookies, IDFA, fingerprints
  • If the user has given consent, then identify all vendors to whom the user has given consent and for which purposes
    • Buyers should also only use and store user data if the user has given consent to the buyer and only for the purposes for which the user has given consent
    • Buyers should only allow third-party direct or redirect links to those who have received consent from the user
    • https://vendorlist.consensu.org/vendorlist.json
  • If no consent is given, you cannot use personal data and may not have the right to use cookies. Each party is responsible for determining what that means for their business. If user consent explicitly states that it is not given, then do not respond with an ad which utilises user information and neither access nor store information on the user’s device e.g. cookies, IDFA, fingerprints

For more information see the following links:

DigiTrust Object

DigiTrust Object Properties
Value Type Description
id string User ID as provided by DigiTrust. If digitrust.keyv is provided then the ID is encrypted
keyv* integer The Key version responsible for encryption, if the ID is encrypted.

User Object Example

{
   "user":{
      "id":"45asdf987656789adfad4678rew656789",
      "buyeruid":"1234567890",
      "keywords":"sports, entertainment",
      "yob":1976,
      "gender":"F",
      "ext":{
         "ug":1,
         "cookie_age":15,
         "consent":"Y29uc2VudCBkYXRh",
         "digitrust":{
            "id":"F6vrzeiV625KD2WaTcGs68ajfRYokPFm6jNUSsawIKAdo/K8vOCPQ24l7hvEatiOBnsBOABTCj==",
            "keyv":1
         }
      }
   }
}