Device.js
Whether the device supports JavaScript, where 0 means no and 1 means yes.
Field facts
- Path
device.js- Object
- Device
- Type
- integer
- Requirement
- Optional
- Added
- OpenRTB 2.0
- Spec section
- 3.2.18
How it is used
Buyers whose creatives or measurement need JavaScript skip impressions marked 0. Most web traffic is 1; some CTV and audio environments are 0.
Allowed values
0, 1.
Example
Where the field sits in a payload, with everything else left out:
{
"id": "req-1",
"device": {
"js": 1
}
}Version history
Added in OpenRTB 2.0, 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.0 to 2.2 | integer | No | No |
| 2.3 to 2.3.1 | integer | No | No |
| 2.4 | integer | No | No |
| 2.5 to 2.6-202606 | integer | No | No |