我可以根据城市和语言估算受众规模吗?

Can I estimate the audience size given the city and the language?

我需要模仿目标选择屏幕的行为,只是让它更简单,将选择限制在几种语言和几百个城市,请参见下面的原始屏幕图片。我试过打电话

curl -G  \
  -d 'targeting_spec="{"geo_locations":{"countries":["BE"],"zips":[{"key":"BE:1000"}],"locales":[{"key":"1003"}]}}' \
  -d 'access_token=TOKEN' \

https://graph.facebook.com/v2.3/act_AD_ACCOUNT_ID/reachestimate

但我收到消息

{
  "error": {
    "message": "The entity backed by id ENTITY_ID cannot be seen by the viewer with (ViewerID 0, AccountID 0): DENY_RULE:InlinePrivacyPolicy:AlwaysDenyRule:4 (EntID: ENTITY_ID)",
    "type": "OAuthException",
    "code": 1
  }
}

我应该向 Facebook 请求更多权限吗?如何?我只是想构建一个简单的网站应用程序。

您需要将广告管理范围添加到您的访问令牌中,据我所知,您正处于开发模式,您需要确保您发送请求的广告帐户在您的帐户列表中 https://developers.facebook.com/docs/marketing-api/access#standard_accounts

您的 curl 命令应如下所示: - 您不需要国家和邮政编码作为地理位置的一部分,因为它们重叠 - 语言环境不是 geo_locations 的一部分,也不是 key/value 对的数组 - 它是一个整数数组。

curl -G  \
-d 'targeting_spec={"geo_locations":{"zips":[{"key":"BE:1000"}]},"locales":[1003]}' \
-d 'access_token=[access_token]' \
https://graph.facebook.com/v2.3/[account_id]/reachestimate