Geo.lon

Longitude in decimal degrees, from -180.0 to 180.0, with western longitudes negative.

CurrentfloatOptionalSince 2.0

Field facts

Path
device.geo.lon, user.geo.lon
Object
Geo
Type
float
Requirement
Optional
Added
OpenRTB 2.0
Spec section
3.2.19

How it is used

Always send it together with lat, under the same precision and privacy rules.

Example

Where the field sits in a payload, with everything else left out:

{
  "id": "req-1",
  "device": {
    "geo": {
      "lon": -122.4194
    }
  }
}

Common mistakes

  • Dropping the minus sign for western longitudes, which moves a user in the Americas to Asia.

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.1floatNoNo
2.2float ne knNoNo
2.3 to 2.3.1floatNoNo
2.4floatNoNo
2.5 to 2.6-202606floatNoNo

Related fields

Other Geo fields