简体   繁体   English

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

[英]Google AdWords Location Criterion Id to ISO 3166-2

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? 是否可以通过Google AdWords API从“ 地理位置效果报告”中获取特定位置的ISO 3166-2代码?

I need to show a map chart representing countries and those javascript libraries work with ISO Codes. 我需要显示代表国家/地区的地图,并且这些javascript库都可以使用ISO代码。

For example: 例如:

API response: API回应:

{"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". 因此,我可以从区域代码2724中得到,它引用了ISO代码“ ES”。

There's an official CSV file that provides additional information about Adwords' Geolocations. 有一个官方CSV文件,其中提供了有关Adwords地理位置的其他信息。 Among other fields, you'll find the ISO-3166-1 alpha-2 country code for each location ID. 在其他字段中,您将找到每个位置ID的ISO-3166-1 alpha-2国家/地区代码。

The file can be found here: https://developers.google.com/adwords/api/docs/appendix/geo/geotargets-2019-02-11.csv 可以在以下位置找到该文件: https : //developers.google.com/adwords/api/docs/appendix/geo/geotargets-2019-02-11.csv

Note that it is updated from time to time. 请注意,它会不时更新。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM