BidRequest.device.geo

Geo

Location, either as coordinates or as administrative codes, with a field saying where the data came from.

Fields

FieldTypeLevelDescription
typeintegerrecommendedSource of the location data.
accuracyintegerrecommendedAccuracy in metres, for GPS-derived locations.
latfloatoptionalLatitude, -90.0 to +90.0.
lonfloatoptionalLongitude, -180.0 to +180.0.
countrystringoptionalCountry code, ISO-3166-1-alpha-3.
regionstringoptionalRegion code, ISO-3166-2.
citystringoptionalCity, using UN/LOCODE.
zipstringoptionalPostal or ZIP code.
metrostringoptionalMetro or DMA code.

Example

What matters in practice

The type field is the one that matters and the one most often ignored. It distinguishes a GPS fix from an IP-derived guess, and those are not comparable: IP geolocation is reliable at country level, roughly right at region level, and frequently wrong at city level — particularly on mobile carriers, where an IP can resolve to a gateway hundreds of kilometres from the user. A city-level targeting rule built on IP-derived geo is buying a much fuzzier audience than the report suggests. Note also that country is the three-letter code, not the two-letter one most systems use elsewhere.

Related objects

Field names, types and requirement levels from the IAB Tech Lab OpenRTB 2.6 specification (2.6-202211), verified 30 July 2026. The practice notes are not spec text.