获取来自Facebook广告的评论(营销) [英] Get comments from facebook ads (marketing)

查看:346
本文介绍了获取来自Facebook广告的评论(营销)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在facebook ads manager上为我的帖子制作广告之后. Facebook Ads Manager告诉我该广告有多少评论.这对我验证广告系列的效果非常重要.

After I make an ads for my post on facebook ads manager. Facebook Ads Manager show me how many comment belong to this ads. This is very important for me to verify the effective of my campaign.

在编程方面:是否有任何方法可以计算属于我的广告的数量,例如Facebook Ads Manager(我在上面描述了).我已经使用了两个Java Facebook Ads SDK(来自 https://github.com的Ads Insight模块/facebook/facebook-java-ads-sdk )和图形浏览器工具,它们都返回"comment"字段或"like"字段不存在 请帮忙!

In programing aspect: Is there's any way to count number belong to my ads like Facebook Ads Manager (I describe above). I have used both Java Facebook Ads SDK (Ads Insight module from https://github.com/facebook/facebook-java-ads-sdk) and Graph Explorer Tool, they both return "comment" field or "like" field not existed Please help!

推荐答案

您无法直接从Marketing Insights获得评论或反应.

我站得住脚.如果您有权访问ad_account信息,则可以使用Marketing API直接获取帖子的评论.谢谢@ lamxung55

I stand corrected. If you have access to an ad_account insights, then you can use Marketing API to get a post's comments directly. Thanks @lamxung55

假设您的帐户和ad_id为123000000

Let's say you have and ad_id of 123000000

如果您拥有具有ads_managementads_read权限的令牌,则可以向Marketing API发出请求,例如

If you have a token with ads_management or ads_read permission, you can make a request to the Marketing API such as

/123000000?fields=creative.fields(effective_object_story_id),insights.fields(actions)

这将为您提供effective_object_story_id,即帖子({page_id}_{post_id})的object_id,及其见解包括按操作类型细分的操作.例如:

This will give you the effective_object_story_id which is the object_id of the post ({page_id}_{post_id}), and its insights including its actions broken down by action type. For example:

{
  "creative": {
    "effective_object_story_id": "456000000_789000000",
    "id": "123000000"
  },
  "insights": {
    "data": [
      {
        "actions": [
          {
            "action_type": "comment",
            "value": "12"
          },
          {
            "action_type": "like",
            "value": "2"
          },
          {
            "action_type": "post",
            "value": "3"
          },
          {
            "action_type": "post_reaction",
            "value": "29"
          },
          {
            "action_type": "video_view",
            "value": "558"
          },
          {
            "action_type": "page_engagement",
            "value": "604"
          },
          {
            "action_type": "post_engagement",
            "value": "602"
          }
        ],
        "date_start": "2017-08-14",
        "date_stop": "2017-08-20"
      }
    ],
    "paging": {
      "cursors": {
        "before": "xxx",
        "after": "xxx"
      }
    }
  }
}

effective_object_story_id(因此,post_id)是456000000_789000000.

The effective_object_story_id (so, post_id) is 456000000_789000000.

然后您可以通过添加summary=true作为参数来查询帖子的comments边缘.此端点对普通职位公开(但不适用于非公开职位)

You can then query the comments edge of the post adding summary=true as a parameter. This endpoint is public for common posts (however, it won't work for non public posts)

/456000000_789000000/comments?summary=true

哪个对象会响应

{
  "data": [
     <LOTS OF COMMENTS HERE>
  ],
  "paging": {
    <PAGING LINKS>
  },
  "summary": {
    "order": "chronological",
    "total_count": 50,
    "can_comment": true
  }
}

这意味着该帖子有50条评论,其中12条是通过付费操作发表的.

This means the post has had 50 comments, of which 12 were made through a paid action.

这篇关于获取来自Facebook广告的评论(营销)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆