Device.ipv6
The device's IPv6 address, as a string in standard notation. Present since OpenRTB 2.0.
Field facts
- Path
device.ipv6- Object
- Device
- Type
- string
- Requirement
- Optional
- Added
- OpenRTB 2.0
- Spec section
- 3.2.18
How it is used
Send it when the device connects over IPv6, with or without ip. The 2.5 COPPA guidance recommends removing the lowest 32 bits for child-directed traffic. The lower 64 bits of an IPv6 address often identify a single interface, so coarsening IPv6 needs more care than zeroing the last IPv4 octet.
Example
Where the field sits in a payload, with everything else left out:
{
"id": "req-1",
"device": {
"ipv6": "2001:db8:85a3::8a2e:370:7334"
}
}Common mistakes
- Sending an IPv4-mapped form such as ::ffff:203.0.113.57 here instead of putting the IPv4 address in
device.ip.
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 | string | No | No |
| 2.3 to 2.3.1 | string | No | No |
| 2.4 | string | No | No |
| 2.5 to 2.6-202606 | string | No | No |