【问题标题】:Facebook Marketing API : Get results and cost per result of a CampaignFacebook Marketing API:获取广告系列的结果和每个结果的成本
【发布时间】:2018-12-18 11:02:08
【问题描述】:

我正在创建一个应用程序(使用 Facebook Business Java SDK),该应用程序可以获取广告帐户拥有的所有活动信息。几乎我的广告系列都有相同的目标是 APP_INSTALLS。我想知道我的应用安装了多少次,所以我尝试在 Adsmanager 板中请求诸如“结果”列和“每次结果成本”列之类的信息:

Adsmanager colums

但是当我在 APIRequestGetInsights 的请求字段中添加“results”和“cost_per_result”时,我得到了一个 FailRequestException :

"{"error":{"message":"(#100) 结果,cost_per_result 对字段参数无效。请检查 https://developers.facebook.com/docs/marketing-api/reference/ads-insights/ 了解所有有效值","type":"OAuthException","code":100,"fbtrace_id":"DnPCKyIGIqs “}}”

我使用了具有以下权限的用户访问令牌: - read_insights - 管理页面 - pages_show_list - 发布页面 - 广告管理 - ads_read - 业务管理

我在谷歌上搜索了很多次,但没有任何用处。所以这里有人请告诉我如何通过 Facebook api 获取活动的“结果”和“每个结果的成本”信息?

【问题讨论】:

  • 我也对这个感兴趣。这些值在 3.2 之前在 cost_per_action_type 下可用,但已从此处删除。我发现使用具有 user_friends、publish_actions、read_insights、whitelisted_offline_access、manage_pages、pages_show_list、publish_pages、ads_management、ads_read、business_management、public_profile 权限的非系统用户令牌将允许您访问此字段,但使用系统用户没有运气。

标签: facebook facebook-marketing-api


【解决方案1】:

正如评论中所说,此信息曾经在字段cost_per_action_type 中可用,您可以在ad['action_type'] == 'mobile_app_install' 所在的项目中检索值。

很遗憾,这在 3.2 中不再可用,但你可以自己计算这个值:

进行包含actionsspend 字段的查询。
您将找到安装总数(在带有action_type == 'mobile_app_install') 的项目中,然后您可以使用cost_per_install = spend / install_count 计算每次安装的成本。

【讨论】:

    猜你喜欢
    • 2016-10-17
    • 1970-01-01
    • 2019-04-18
    • 2021-01-19
    • 1970-01-01
    • 2021-06-20
    • 2017-12-10
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多