我正在尝试发布带有目标参数的内容,我可以这样做但只指定一个城市。有没有办法通过两个或更多城市?
我正在尝试这种方式:
parameters.targeting = new {
countries = "some country",
cities = new [] { new { key = "city value" }, new { key = "other city value" } },
locales = "locale code"
};
但没有成功!我怎么能这样做?
答案 0 :(得分:0)
这是非常不清楚的,但我猜你只是没有正确格式化你的城市阵列。点击此处:https://developers.facebook.com/docs/reference/ads-api/targeting-specs/
我相信你应该使用“名字”代替城市的“钥匙”,但我真的没有足够的信息可以用来。
答案 1 :(得分:0)
指定键,半径和& DISTANCE_UNIT。有关密钥,请参阅定位搜索, 城市。半径是城市周围的距离,从10到50英里或17 到80公里。 distance_unit是英里或公里。限制:250。 示例:'cities':[{'key':'2430536','radius':12, 'DISTANCE_UNIT': '英里'}]
来源:https://developers.facebook.com/docs/marketing-api/buying-api/targeting#location