Device.pxratio
The ratio of physical pixels to device-independent pixels, as a float, such as 3.0 on many current phones and 1.0 on a standard desktop monitor. Added in OpenRTB 2.3.
Field facts
- Path
device.pxratio- Object
- Device
- Type
- float
- Requirement
- Optional
- Added
- OpenRTB 2.3
- Spec section
- 3.2.18
How it is used
Creative servers use it to pick image assets at the right resolution so ads stay sharp on high-density screens.
Example
Where the field sits in a payload, with everything else left out:
{
"id": "req-1",
"device": {
"pxratio": 3
}
}Version history
Added in OpenRTB 2.3, and present in the latest snapshot. The table shows how each version's spec text types the field.
| Versions | Type in the spec | Required | Deprecated |
|---|---|---|---|
| 2.3 to 2.3.1 | float | No | No |
| 2.4 | float | No | No |
| 2.5 to 2.6-202606 | float | No | No |