Google Ads location codes by country
dataforseo.x.keywords-data-google-ads-locations-countryWe use Google Geographical Targeting.
- 价格
- free按供应商原价
- 成功率
- 79.1%近 30 天 · 129 次
- 延迟 p50
- 1.1 秒p95 2.2 秒
- 最后验证
- —尚未验证
GEThttps://toolswitch.dev/v1/tools/dataforseo.x.keywords-data-google-ads-locations-country预览在线试用即将上线供应商文档 ↗
- 可用平台额度调用
- 同步返回
- 读取公开数据
参数
| 参数 | 类型 | 必填 | 说明 | 示例 |
|---|---|---|---|---|
| 路径参数 | ||||
country | 字符串 | 必填 | ISO 3166-1 alpha-2 country code, lowercase (e.g. de). The list for a large country can be longer than treg's 8 MiB response limit; that call is refused with 502 response_buffer_limit and not charged. Most data routes also accept location_name (e.g. "Germany") instead of a code. | de |
- 路径参数
country字符串必填ISO 3166-1 alpha-2 country code, lowercase (e.g. de). The list for a large country can be longer than treg's 8 MiB response limit; that call is refused with 502 response_buffer_limit and not charged. Most data routes also accept location_name (e.g. "Germany") instead of a code.
示例:
de
代码示例
将 $TOOLSWITCH_KEY 替换为你在控制台创建的密钥。
预览
curl -X GET 'https://toolswitch.dev/v1/tools/dataforseo.x.keywords-data-google-ads-locations-country' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY"import os
import requests
response = requests.request(
"GET",
"https://toolswitch.dev/v1/tools/dataforseo.x.keywords-data-google-ads-locations-country",
headers={"X-Toolswitch-Key": os.environ["TOOLSWITCH_KEY"]},
)
response.raise_for_status()
print(response.text)const response = await fetch("https://toolswitch.dev/v1/tools/dataforseo.x.keywords-data-google-ads-locations-country", {
method: "GET",
headers: {
"X-Toolswitch-Key": process.env.TOOLSWITCH_KEY ?? "",
},
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
console.log(await response.text());网关接口为预览版,地址与鉴权方式可能调整。 示例参数仅为样例数据。 调用按 free 计费,已含服务费。