-
public final class UserThis object contains information known or derived about the human user of the device (i.e., the audience for advertising). The user id is an exchange 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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public enumUser.Gender
-
Constructor Summary
Constructors Constructor Description User()
-
Method Summary
Modifier and Type Method Description final StringgetId()Exchange-specific ID for the user. final UnitsetId(@SerializedName(value = id) String id)Exchange-specific ID for the user. final StringgetBuyerUID()Buyer-specific ID for the user as mapped by the exchange for the buyer. final UnitsetBuyerUID(@SerializedName(value = buyeruid) String buyerUID)Buyer-specific ID for the user as mapped by the exchange for the buyer. final IntegergetYearOfBirth()Year of birth as a 4-digit integer. final UnitsetYearOfBirth(@SerializedName(value = yob) Integer yearOfBirth)Year of birth as a 4-digit integer. final CharactergetGender()Gender, where “M” = male, “F” = female, “O” = known to be other (i.e., omitted is unknown). final UnitsetGender(@SerializedName(value = gender) Character gender)Gender, where “M” = male, “F” = female, “O” = known to be other (i.e., omitted is unknown). final StringgetKeywords()Comma separated list of keywords, interests, or intent. final UnitsetKeywords(@SerializedName(value = keywords) String keywords)Comma separated list of keywords, interests, or intent. final StringgetCustomData()Optional feature to pass bidder data that was set in the exchange’s cookie. final UnitsetCustomData(@SerializedName(value = customdata) String customData)Optional feature to pass bidder data that was set in the exchange’s cookie. final GeogetGeo()Location of the user’s home base defined by a Geo object. final UnitsetGeo(@SerializedName(value = geo) Geo geo)Location of the user’s home base defined by a Geo object. final DatagetData()Additional user data. final UnitsetData(@SerializedName(value = data) Data data)Additional user data. final ObjectgetExtension()Placeholder for exchange-specific extensions to OpenRTB. final UnitsetExtension(@SerializedName(value = ext) Object extension)Placeholder for exchange-specific extensions to OpenRTB. -
-
Method Detail
-
getId
final String getId()
Exchange-specific ID for the user. At least one of id or buyerUID is recommended.
-
setId
final Unit setId(@SerializedName(value = id) String id)
Exchange-specific ID for the user. At least one of id or buyerUID is recommended.
-
getBuyerUID
final String getBuyerUID()
-
setBuyerUID
final Unit setBuyerUID(@SerializedName(value = buyeruid) String buyerUID)
-
getYearOfBirth
final Integer getYearOfBirth()
Year of birth as a 4-digit integer.
-
setYearOfBirth
final Unit setYearOfBirth(@SerializedName(value = yob) Integer yearOfBirth)
Year of birth as a 4-digit integer.
-
getGender
final Character getGender()
Gender, where “M” = male, “F” = female, “O” = known to be other (i.e., omitted is unknown).
-
setGender
final Unit setGender(@SerializedName(value = gender) Character gender)
Gender, where “M” = male, “F” = female, “O” = known to be other (i.e., omitted is unknown).
-
getKeywords
final String getKeywords()
Comma separated list of keywords, interests, or intent.
-
setKeywords
final Unit setKeywords(@SerializedName(value = keywords) String keywords)
Comma separated list of keywords, interests, or intent.
-
getCustomData
final String getCustomData()
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.
-
setCustomData
final Unit setCustomData(@SerializedName(value = customdata) String customData)
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.
-
getGeo
final Geo getGeo()
Location of the user’s home base defined by a Geo object. This is not necessarily their current location.
-
setGeo
final Unit setGeo(@SerializedName(value = geo) Geo geo)
Location of the user’s home base defined by a Geo object. This is not necessarily their current location.
-
getData
final Data getData()
Additional user data. Each Data object represents a different data source.
-
setData
final Unit setData(@SerializedName(value = data) Data data)
Additional user data. Each Data object represents a different data source.
-
getExtension
final Object getExtension()
Placeholder for exchange-specific extensions to OpenRTB.
-
setExtension
final Unit setExtension(@SerializedName(value = ext) Object extension)
Placeholder for exchange-specific extensions to OpenRTB.
-
-
-
-