ISO 3166-2的Google AdWords位置标准ID

ISO 3166-2的Google AdWords位置标准ID

问题描述:

Is there a way to obtain the ISO 3166-2 code for a specific location received from the Geo Performance Report coming from the Google AdWords API?

I need to show a map chart representing countries and those javascript libraries work with ISO Codes.

For example:

API response:

{"Country\/Territory":"2724","Region":"2724","Impressions":"7","Campaign_ID":"1234","Campaign":"video-campaign-test-5c4c476815a9c","Avg_Cost":"12344444","Avg_CPC":"0","Avg_CPM":"12344444","Avg_CPV":"12344444","Clicks":"0","Cost":"94550032","CTR":"0.00%","View_rate":"14.29%","Views":"1"}

So, I can get from the Region code, 2724 that it refers to the ISO code "ES".

有没有办法获得从地理位置效果报告 p >

我需要显示一个代表国家的地图,这些javascript库使用ISO代码。 p>

例如: p>

API响应: p>

  {“Country \ / Territory”:“2724”,“Region”:“2724”,“Impressions”:“7”,“Campaign_ID”:  “1234”, “运动”: “视频运动试验5c4c476815a9c”, “Avg_Cost”: “12344444”, “Avg_CPC”: “0”, “Avg_CPM”: “12344444”, “Avg_CPV”: “12344444”,  “点击次数”: “0”, “成本”: “94550032”, “点击率”: “0.00%”, “View_rate”: “14.29%”, “查看”: “1”} 
 代码>   pre> 
 
 

所以,我可以从区域代码2724得到它引用ISO代码“ES”。 p> div>

There's an official CSV file that provides additional information about Adwords' Geolocations. Among other fields, you'll find the ISO-3166-1 alpha-2 country code for each location ID.

The file can be found here: https://developers.google.com/adwords/api/docs/appendix/geo/geotargets-2019-02-11.csv

Note that it is updated from time to time.