Device.h
The physical height of the screen in pixels, as an integer. Added in OpenRTB 2.3 with w, ppi, and pxratio.
Field facts
- Path
device.h- Object
- Device
- Type
- integer
- Requirement
- Optional
- Added
- OpenRTB 2.3
- Spec section
- 3.2.18
How it is used
These are hardware pixels, not CSS or density-independent pixels; divide by device.pxratio to get the logical size. The value describes the whole screen. The ad slot size lives on the impression, for example in imp.banner.h.
Example
Where the field sits in a payload, with everything else left out:
{
"id": "req-1",
"device": {
"h": 2532
}
}Common mistakes
- Sending the slot or viewport size instead of the screen size.
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 | integer | No | No |
| 2.4 | integer | No | No |
| 2.5 to 2.6-202606 | integer | No | No |