Device.geofetch
Whether JavaScript in the ad will be able to call the geolocation API, where 0 means no and 1 means yes. Added in OpenRTB 2.4.
Field facts
- Path
device.geofetch- Object
- Device
- Type
- integer
- Requirement
- Optional
- Added
- OpenRTB 2.4
- Spec section
- 3.2.18
How it is used
Location-aware rich media checks it before bidding. A value of 1 means the API exists, not that the user granted permission; the creative still has to ask, and the browser or OS may refuse.
Allowed values
0, 1.
Example
Where the field sits in a payload, with everything else left out:
{
"id": "req-1",
"device": {
"geofetch": 1
}
}Version history
Added in OpenRTB 2.4, 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.4 | integer | No | No |
| 2.5 to 2.6-202606 | integer | No | No |