-
public final class DeviceThis object provides information pertaining to the device through which the user is interacting. Device information includes its hardware, platform, location, and carrier data. The device can refer to a mobile handset, a desktop computer, set top box, or other digital device.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public enumDevice.Type
-
Field Summary
Fields Modifier and Type Field Description private IntegerlimitAdTrackingprivate Stringipprivate StringipV6private IntegerdeviceTypeprivate IntegerconnectionTypeprivate StringidForAdvertiserprivate StringdeviceIDSHA1private StringdeviceIDMD5private StringdevicePlatformSHA1private StringdevicePlatformMD5private StringmacAddressSHA1private StringmacAddressMD5private Objectextensionprivate final Contextcontext
-
Method Summary
Modifier and Type Method Description final IntegergetLimitAdTracking()“Limit Ad Tracking” signal commercially endorsed (e.g., iOS, Android), where 0 = tracking is unrestricted, 1 = tracking must be limited per commercial guidelines. final UnitsetLimitAdTracking(@SerializedName(value = lmt) Integer limitAdTracking)“Limit Ad Tracking” signal commercially endorsed (e.g., iOS, Android), where 0 = tracking is unrestricted, 1 = tracking must be limited per commercial guidelines. final StringgetIp()IPv4 address closest to device. final UnitsetIp(@SerializedName(value = ip) String ip)IPv4 address closest to device. final StringgetIpV6()IP address closest to device as IPv6. final UnitsetIpV6(@SerializedName(value = ipv6) String ipV6)IP address closest to device as IPv6. final IntegergetDeviceType()The general type of device. final UnitsetDeviceType(@SerializedName(value = devicetype) Integer deviceType)The general type of device. final IntegergetConnectionType()Network connection type. final UnitsetConnectionType(@SerializedName(value = connectiontype) Integer connectionType)Network connection type. final StringgetIdForAdvertiser()ID sanctioned for advertiser use in the clear (i.e., not hashed). final UnitsetIdForAdvertiser(@SerializedName(value = ifa) String idForAdvertiser)ID sanctioned for advertiser use in the clear (i.e., not hashed). final StringgetDeviceIDSHA1()Hardware device ID (e.g., IMEI); hashed via SHA1. final UnitsetDeviceIDSHA1(@SerializedName(value = didsha1) String deviceIDSHA1)Hardware device ID (e.g., IMEI); hashed via SHA1. final StringgetDeviceIDMD5()Hardware device ID (e.g., IMEI); hashed via MD5. final UnitsetDeviceIDMD5(@SerializedName(value = didmd5) String deviceIDMD5)Hardware device ID (e.g., IMEI); hashed via MD5. final StringgetDevicePlatformSHA1()Platform device ID (e.g., Android ID); hashed via SHA1. final UnitsetDevicePlatformSHA1(@SerializedName(value = dpidsha1) String devicePlatformSHA1)Platform device ID (e.g., Android ID); hashed via SHA1. final StringgetDevicePlatformMD5()Platform device ID (e.g., Android ID); hashed via MD5. final UnitsetDevicePlatformMD5(@SerializedName(value = dpidmd5) String devicePlatformMD5)Platform device ID (e.g., Android ID); hashed via MD5. final StringgetMacAddressSHA1()MAC address of the device; hashed via SHA1. final UnitsetMacAddressSHA1(@SerializedName(value = macsha1) String macAddressSHA1)MAC address of the device; hashed via SHA1. final StringgetMacAddressMD5()MAC address of the device; hashed via MD5. final UnitsetMacAddressMD5(@SerializedName(value = macmd5) String macAddressMD5)MAC address of the device; hashed via MD5. final ObjectgetExtension()Placeholder for exchange-specific extensions to OpenRTB. final UnitsetExtension(@SerializedName(value = ext) Object extension)Placeholder for exchange-specific extensions to OpenRTB. final ContextgetContext()-
-
Constructor Detail
-
Device
Device(Context context)
-
-
Method Detail
-
getLimitAdTracking
final Integer getLimitAdTracking()
“Limit Ad Tracking” signal commercially endorsed (e.g., iOS, Android), where 0 = tracking is unrestricted, 1 = tracking must be limited per commercial guidelines.
-
setLimitAdTracking
final Unit setLimitAdTracking(@SerializedName(value = lmt) Integer limitAdTracking)
“Limit Ad Tracking” signal commercially endorsed (e.g., iOS, Android), where 0 = tracking is unrestricted, 1 = tracking must be limited per commercial guidelines.
-
setIpV6
final Unit setIpV6(@SerializedName(value = ipv6) String ipV6)
IP address closest to device as IPv6.
-
getDeviceType
final Integer getDeviceType()
The general type of device.
-
setDeviceType
final Unit setDeviceType(@SerializedName(value = devicetype) Integer deviceType)
The general type of device.
-
getConnectionType
final Integer getConnectionType()
Network connection type.
-
setConnectionType
final Unit setConnectionType(@SerializedName(value = connectiontype) Integer connectionType)
Network connection type.
-
getIdForAdvertiser
final String getIdForAdvertiser()
ID sanctioned for advertiser use in the clear (i.e., not hashed).
-
setIdForAdvertiser
final Unit setIdForAdvertiser(@SerializedName(value = ifa) String idForAdvertiser)
ID sanctioned for advertiser use in the clear (i.e., not hashed).
-
getDeviceIDSHA1
final String getDeviceIDSHA1()
Hardware device ID (e.g., IMEI); hashed via SHA1.
-
setDeviceIDSHA1
final Unit setDeviceIDSHA1(@SerializedName(value = didsha1) String deviceIDSHA1)
Hardware device ID (e.g., IMEI); hashed via SHA1.
-
getDeviceIDMD5
final String getDeviceIDMD5()
Hardware device ID (e.g., IMEI); hashed via MD5.
-
setDeviceIDMD5
final Unit setDeviceIDMD5(@SerializedName(value = didmd5) String deviceIDMD5)
Hardware device ID (e.g., IMEI); hashed via MD5.
-
getDevicePlatformSHA1
final String getDevicePlatformSHA1()
Platform device ID (e.g., Android ID); hashed via SHA1.
-
setDevicePlatformSHA1
final Unit setDevicePlatformSHA1(@SerializedName(value = dpidsha1) String devicePlatformSHA1)
Platform device ID (e.g., Android ID); hashed via SHA1.
-
getDevicePlatformMD5
final String getDevicePlatformMD5()
Platform device ID (e.g., Android ID); hashed via MD5.
-
setDevicePlatformMD5
final Unit setDevicePlatformMD5(@SerializedName(value = dpidmd5) String devicePlatformMD5)
Platform device ID (e.g., Android ID); hashed via MD5.
-
getMacAddressSHA1
final String getMacAddressSHA1()
MAC address of the device; hashed via SHA1.
-
setMacAddressSHA1
final Unit setMacAddressSHA1(@SerializedName(value = macsha1) String macAddressSHA1)
MAC address of the device; hashed via SHA1.
-
getMacAddressMD5
final String getMacAddressMD5()
MAC address of the device; hashed via MD5.
-
setMacAddressMD5
final Unit setMacAddressMD5(@SerializedName(value = macmd5) String macAddressMD5)
MAC address of the device; hashed via MD5.
-
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.
-
getContext
final Context getContext()
-
-
-
-