@@ -4,35 +4,35 @@ package openrtb
44// platform, location, and carrier. This device can refer to a mobile handset, a desktop computer,
55// set top box or other digital device.
66type Device struct {
7- UA string `json:"ua,omitempty"` // User agent
8- Geo * Geo `json:"geo,omitempty"` // Location of the device assumed to be the user’s current location
9- DNT int `json:"dnt,omitempty"` // "1": Do not track
10- LMT int `json:"lmt,omitempty"` // "1": Limit Ad Tracking
11- IP string `json:"ip,omitempty"` // IPv4
12- IPv6 string `json:"ipv6,omitempty"` // IPv6
13- DeviceType int `json:"devicetype,omitempty"` // The general type of device.
14- Make string `json:"make,omitempty"` // Device make
15- Model string `json:"model,omitempty"` // Device model
16- OS string `json:"os,omitempty"` // Device OS
17- OSVer string `json:"osv,omitempty"` // Device OS version
18- HwVer string `json:"hwv,omitempty"` // Hardware version of the device (e.g., "5S" for iPhone 5S).
19- H int `json:"h,omitempty"` // Physical height of the screen in pixels.
20- W int `json:"w,omitempty"` // Physical width of the screen in pixels.
21- PPI int `json:"ppi,omitempty"` // Screen size as pixels per linear inch.
22- PxRatio float64 `json:"pxratio,omitempty"` // The ratio of physical pixels to device independent pixels.
23- JS int `json:"js,omitempty"` // Javascript status ("0": Disabled, "1": Enabled)
24- GeoFetch int `json:"geofetch,omitempty"` // Indicates if the geolocation API will be available to JavaScript code running in the banner,
25- FlashVer string `json:"flashver,omitempty"` // Flash version
26- Language string `json:"language,omitempty"` // Browser language
27- Carrier string `json:"carrier,omitempty"` // Carrier or ISP derived from the IP address
28- MCCMNC string `json:"mccmnc,omitempty"` // Mobile carrier as the concatenated MCC-MNC code (e.g., "310-005" identifies Verizon Wireless CDMA in the USA).
29- ConnType int `json:"connectiontype,omitempty"` // Network connection type.
30- IFA string `json:"ifa,omitempty"` // Native identifier for advertisers
31- IDSHA1 string `json:"didsha1,omitempty"` // SHA1 hashed device ID
32- IDMD5 string `json:"didmd5,omitempty"` // MD5 hashed device ID
33- PIDSHA1 string `json:"dpidsha1,omitempty"` // SHA1 hashed platform device ID
34- PIDMD5 string `json:"dpidmd5,omitempty"` // MD5 hashed platform device ID
35- MacSHA1 string `json:"macsha1,omitempty"` // SHA1 hashed device ID; IMEI when available, else MEID or ESN
36- MacMD5 string `json:"macmd5,omitempty"` // MD5 hashed device ID; IMEI when available, else MEID or ESN
7+ UA string `json:"ua,omitempty"` // User agent
8+ Geo * Geo `json:"geo,omitempty"` // Location of the device assumed to be the user’s current location
9+ DNT int `json:"dnt,omitempty"` // "1": Do not track
10+ LMT int `json:"lmt,omitempty"` // "1": Limit Ad Tracking
11+ IP string `json:"ip,omitempty"` // IPv4
12+ IPv6 string `json:"ipv6,omitempty"` // IPv6
13+ DeviceType int `json:"devicetype,omitempty"` // The general type of device.
14+ Make string `json:"make,omitempty"` // Device make
15+ Model string `json:"model,omitempty"` // Device model
16+ OS string `json:"os,omitempty"` // Device OS
17+ OSVer string `json:"osv,omitempty"` // Device OS version
18+ HwVer string `json:"hwv,omitempty"` // Hardware version of the device (e.g., "5S" for iPhone 5S).
19+ H int `json:"h,omitempty"` // Physical height of the screen in pixels.
20+ W int `json:"w,omitempty"` // Physical width of the screen in pixels.
21+ PPI int `json:"ppi,omitempty"` // Screen size as pixels per linear inch.
22+ PxRatio float64 `json:"pxratio,omitempty"` // The ratio of physical pixels to device independent pixels.
23+ JS int `json:"js,omitempty"` // Javascript status ("0": Disabled, "1": Enabled)
24+ GeoFetch int `json:"geofetch,omitempty"` // Indicates if the geolocation API will be available to JavaScript code running in the banner,
25+ FlashVer string `json:"flashver,omitempty"` // Flash version
26+ Language string `json:"language,omitempty"` // Browser language
27+ Carrier string `json:"carrier,omitempty"` // Carrier or ISP derived from the IP address
28+ MCCMNC string `json:"mccmnc,omitempty"` // Mobile carrier as the concatenated MCC-MNC code (e.g., "310-005" identifies Verizon Wireless CDMA in the USA).
29+ ConnType int `json:"connectiontype"` // Network connection type.
30+ IFA string `json:"ifa,omitempty"` // Native identifier for advertisers
31+ IDSHA1 string `json:"didsha1,omitempty"` // SHA1 hashed device ID
32+ IDMD5 string `json:"didmd5,omitempty"` // MD5 hashed device ID
33+ PIDSHA1 string `json:"dpidsha1,omitempty"` // SHA1 hashed platform device ID
34+ PIDMD5 string `json:"dpidmd5,omitempty"` // MD5 hashed platform device ID
35+ MacSHA1 string `json:"macsha1,omitempty"` // SHA1 hashed device ID; IMEI when available, else MEID or ESN
36+ MacMD5 string `json:"macmd5,omitempty"` // MD5 hashed device ID; IMEI when available, else MEID or ESN
3737 Ext Extension `json:"ext,omitempty"`
3838}
0 commit comments