[−][src]Struct openrtb2::Device
3.2.18 Object: Device
This 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.
Fields
ua: Option<Cow<'a, str>>
string; recommended Browser user agent string.
geo: Option<Geo<'a>>
object; recommended Location of the device assumed to be the user’s current location defined by a Geo object (Section 3.2.19).
dnt: Option<bool>
integer; recommended Standard “Do Not Track” flag as set in the header by the browser, where 0 = tracking is unrestricted, 1 = do not track.
lmt: Option<bool>
integer; recommended “Limit Ad Tracking” signal commercially endorsed (e.g., iOS, Android), where 0 = tracking is unrestricted, 1 = tracking must be limited per commercial guidelines.
ip: Option<Cow<'a, str>>
string; recommended IPv4 address closest to device.
ipv6: Option<Cow<'a, str>>
string IP address closest to device as IPv6.
devicetype: Option<DeviceType>
integer The general type of device. Refer to List 5.21.
make: Option<Cow<'a, str>>
string Device make (e.g., “Apple”).
model: Option<Cow<'a, str>>
string Device model (e.g., “iPhone”).
os: Option<Cow<'a, str>>
string Device operating system (e.g., “iOS”).
osv: Option<Cow<'a, str>>
string Device operating system version (e.g., “3.1.2”).
hwv: Option<Cow<'a, str>>
string Hardware version of the device (e.g., “5S” for iPhone 5S).
h: Option<i32>
integer Physical height of the screen in pixels.
w: Option<i32>
integer Physical width of the screen in pixels.
ppi: Option<i32>
integer Screen size as pixels per linear inch.
pxratio: Option<i32>
float The ratio of physical pixels to device independent pixels.
js: Option<bool>
integer Support for JavaScript, where 0 = no, 1 = yes.
geofetch: Option<bool>
integer Indicates if the geolocation API will be available to JavaScript code running in the banner, where 0 = no, 1 = yes.
flashver: Option<Cow<'a, str>>
string Version of Flash supported by the browser.
language: Option<Cow<'a, str>>
string Browser language using ISO-639-1-alpha-2.
carrier: Option<Cow<'a, str>>
string Carrier or ISP (e.g., “VERIZON”) using exchange curated string names which should be published to bidders a priori.
mccmnc: Option<Cow<'a, str>>
string Mobile carrier as the concatenated MCC-MNC code (e.g., “310-005” identifies Verizon Wireless CDMA in the USA). Refer to https://en.wikipedia.org/wiki/Mobile_country_code for further examples. Note that the dash between the MCC and MNC parts is required to remove parsing ambiguity.
connectiontype: Option<ConnectionType>
integer Network connection type. Refer to List 5.22.
ifa: Option<Cow<'a, str>>
string ID sanctioned for advertiser use in the clear (i.e., not hashed).
didsha1: Option<Cow<'a, str>>
string Hardware device ID (e.g., IMEI); hashed via SHA1.
didmd5: Option<Cow<'a, str>>
string Hardware device ID (e.g., IMEI); hashed via MD5.
dpidsha1: Option<Cow<'a, str>>
string Platform device ID (e.g., Android ID); hashed via SHA1.
dpidmd5: Option<Cow<'a, str>>
string Platform device ID (e.g., Android ID); hashed via MD5.
macsha1: Option<Cow<'a, str>>
string MAC address of the device; hashed via SHA1.
macmd5: Option<Cow<'a, str>>
string MAC address of the device; hashed via MD5.
ext: Option<Object<'a>>
object Placeholder for exchange-specific extensions to OpenRTB.
Trait Implementations
impl<'a> Clone for Device<'a>
[src]
impl<'a> Debug for Device<'a>
[src]
impl<'a> Default for Device<'a>
[src]
impl<'de: 'a, 'a> Deserialize<'de> for Device<'a>
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl<'a> PartialEq<Device<'a>> for Device<'a>
[src]
impl<'a> Serialize for Device<'a>
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl<'a> StructuralPartialEq for Device<'a>
[src]
Auto Trait Implementations
impl<'a> RefUnwindSafe for Device<'a>
impl<'a> Send for Device<'a>
impl<'a> Sync for Device<'a>
impl<'a> Unpin for Device<'a>
impl<'a> UnwindSafe for Device<'a>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DefaultExt for T where
T: Default + PartialEq<T>,
[src]
T: Default + PartialEq<T>,
pub fn is_default(&self) -> bool
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,