Device.js

Whether the device supports JavaScript, where 0 means no and 1 means yes.

CurrentintegerOptionalSince 2.0

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.

VersionsType in the specRequiredDeprecated
2.0 to 2.2integerNoNo
2.3 to 2.3.1integerNoNo
2.4integerNoNo
2.5 to 2.6-202606integerNoNo

Related fields

Other Device fields