广告定位& Facebook Ads API

时间:2012-08-08 20:11:00

标签: facebook api facebook-graph-api

我提交了以下目标标准:

{countries":["US"],
"cities":{"name":"Gilbert, AZ"},
"zips":[],
"regions":[],
"radius":0,
"locals":null,
"keywords":[],
"user_adclusters":[],
"interested_in":null,
"genders":null,
"age_min":25,
"age_max":0}

我要回的错误是:

(Exception - #0) Invalid Cities.

有人可以帮助我吗?

谢谢! 埃里克

1 个答案:

答案 0 :(得分:1)

尝试包含城市的ID:

(你从搜索终点返回'钥匙')

e.g。

countries":["US"],"cities":[{"id": 2413131,"name":"Gilbert, AZ"},{//SOME OTHER CITY}],"zips":[],"regions":[],"radius":0,"locals":null,"keywords":[],"user_adclusters":[],"interested_in":null,"genders":null,"age_min":25,"age_max":0}

有时仅提供名称