Skip to content

Commit 0d9f302

Browse files
remove lat/lon and ext from geo object
1 parent 5bb4887 commit 0d9f302

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

crates/common/src/prebid_proxy.rs

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -164,20 +164,11 @@ fn enhance_openrtb_request(
164164

165165
// Add geo information if available
166166
if let Some(geo_info) = GeoInfo::from_request(req) {
167-
// Create geo object for OpenRTB
168-
// Note: Fastly geo_lookup provides IP-based location
169167
let geo_obj = json!({
170-
"lat": geo_info.latitude,
171-
"lon": geo_info.longitude,
172168
"type": 2, // 2 = IP address location
173169
"country": geo_info.country, // Note: OpenRTB expects ISO 3166-1 alpha-3, but Fastly provides alpha-2
174170
"city": geo_info.city,
175171
"region": geo_info.region,
176-
// metro code is included via ext since OpenRTB doesn't have a standard field for it
177-
"ext": {
178-
"metro_code": geo_info.metro_code,
179-
"continent": geo_info.continent
180-
}
181172
});
182173

183174
if !request["device"].is_object() {

0 commit comments

Comments
 (0)