如果出價方需要自訂地理位置資料,建議使用 lat、lon 和 accuracy 欄位執行空間地理位置查詢。我們不建議使用 BidRequest.device.ip 欄位進行地理定位,因為 Google 只會以經過截斷的形式分享 IP 位址;如果使用經過截斷的 IP 位址進行地理定位,可能會導致結果不準確。
地理表 (已淘汰)
BidRequest.device.geo.ext.geo_criteria_id 欄位會以數字 ID 表示地理位置,並對應至 geo-table.csv 中的地理位置,您可以在 Protos 與參考資料頁面的參考資料表格部分下載該檔案。這個欄位和對應的資料表現已淘汰。您可以使用 BidRequest.device.geo 取得類似的地理位置資訊。
舉例來說,如果出價要求以城市級精確度填入 geo,geo_criteria_id 就會包含對應城市的代碼。您可以使用該 ID 在地理表中找出記錄。
[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["缺少我需要的資訊","missingTheInformationINeed","thumb-down"],["過於複雜/步驟過多","tooComplicatedTooManySteps","thumb-down"],["過時","outOfDate","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["示例/程式碼問題","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2025-09-04 (世界標準時間)。"],[[["\u003cp\u003eGoogle uses IP geolocation to provide coarse location data in bid requests, prioritizing user privacy by generalizing the location.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eGeo\u003c/code\u003e object contains civil location fields (country, region, etc.) and geographical coordinates (lat, lon, accuracy) representing the same location.\u003c/p\u003e\n"],["\u003cp\u003eFor custom geolocation targeting, utilize the \u003ccode\u003elat\u003c/code\u003e, \u003ccode\u003elon\u003c/code\u003e, and \u003ccode\u003eaccuracy\u003c/code\u003e fields for spatial lookups instead of the truncated \u003ccode\u003eip\u003c/code\u003e field.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003egeo_criteria_id\u003c/code\u003e and associated geo-table are deprecated; migrate to the \u003ccode\u003eGeo\u003c/code\u003e object for location information.\u003c/p\u003e\n"],["\u003cp\u003eWhile some locations may appear in reports, they might be non-targetable due to advertising regulations, like those in China.\u003c/p\u003e\n"]]],[],null,[]]