发布到 Facebook 并定位多个城市
我正在尝试发布带有目标参数的内容,我可以做到这一点,但只能指定一个城市。有没有办法经过两个或多个城市?
我正在尝试这种方法:
parameters.targeting = new {
countries = "some country",
cities = new [] { new { key = "city value" }, new { key = "other city value" } },
locales = "locale code"
};
但没有成功!我该怎么做?
I'm trying to post something with target parameters, and i can do that but specifying only one city. Is there any way to pass two or more cities?
I'm trying this way:
parameters.targeting = new {
countries = "some country",
cities = new [] { new { key = "city value" }, new { key = "other city value" } },
locales = "locale code"
};
But no success! How can i do this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这是非常不清楚的,但我猜你只是没有正确格式化你的城市数组。在此处查看更多信息:https://developers.facebook.com/docs/ Reference/ads-api/targeting-specs/
我相信您应该在城市中使用“名称”而不是“密钥”,但我确实没有足够的信息可供参考。
This is very unclear, but I am guessing you are just not formatting your array of cities correctly. See more here: https://developers.facebook.com/docs/reference/ads-api/targeting-specs/
I believe you should be using "name" instead of "key" for the cities, but again I really don't have enough information to go off of.
来源:https:/ /developers.facebook.com/docs/marketing-api/buying-api/targeting#location
Source: https://developers.facebook.com/docs/marketing-api/buying-api/targeting#location