Device.ipv6

The device's IPv6 address, as a string in standard notation. Present since OpenRTB 2.0.

CurrentstringOptionalSince 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.

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

Related fields

Other Device fields