在facebook上发布多个城市目标



我正在尝试发布带有目标参数的内容,我可以这样做,但只指定一个城市。有办法经过两个或两个以上的城市吗?

我正在尝试这种方式:

parameters.targeting = new {
countries = "some country",
cities = new [] { new { key = "city value" }, new { key = "other city value" } },
locales = "locale code"
};

但没有成功!我该怎么做?

这还不清楚,但我猜您只是没有正确格式化您的城市阵列。点击此处查看更多信息:https://developers.facebook.com/docs/reference/ads-api/targeting-specs/

我认为你应该用"名字"而不是"钥匙"来表示城市,但我真的没有足够的信息。

指定键、半径&distance _ unit。有关关键字,请参阅目标搜索,城市。半径是指城市周围的距离,从10到50英里或17英里至80公里。distance unit是英里或千米。上限:250。示例:"cities":[{'key':'2430536','radius':12,'distance_unit':'mile'}]

来源:https://developers.facebook.com/docs/marketing-api/buying-api/targeting#location

最新更新