1

在请求运行时间超过 1 天的添加的广告统计信息时,我收到unique_imperssion = 0.

但是,当请求一天的统计信息时,会填充 unique_impression。

这是一个错误还是故意的?是否有解决方法可以获得超过 1 天的独特印象?

查询一天:

https://graph.facebook.com/<ad_group_id>/stats/1362787200/1362873600

我得到:

{
   "id": "<ad_group_id>/stats/1362787200/1362873600",
   "impressions": 8616,
   "clicks": 67,
   "spent": 715,
   "social_impressions": 20,
   "social_clicks": 0,
   "social_spent": 0,

   "unique_impressions": 3544,

   "social_unique_impressions": 11,
   "unique_clicks": 67,
   "social_unique_clicks": 0,
   "actions": null,
   "inline_actions": {
      "title_clicks": 0,
      "like": 9,
      "rsvp_yes": 0,
      "rsvp_maybe": 0,
      "post_like": 0,
      "comment": 0,
      "photo_view": 0,
      "link_click": 0,
      "video_play": 0,
      "question_vote": 0
   },...

查询所有时间:

https://graph.facebook.com/<ad_group_id>/stats

我得到:

{
   "id": "<ad_group_id>/stats",
   "impressions": 8616,
   "clicks": 67,
   "spent": 715,
   "social_impressions": 20,
   "social_clicks": 0,
   "social_spent": 0,

   "unique_impressions": 0,

   "social_unique_impressions": 11,
   "unique_clicks": 67,
   "social_unique_clicks": 0,
   "actions": null,
   "inline_actions": {
      "title_clicks": 0,
      "like": 9,
      "rsvp_yes": 0,
      "rsvp_maybe": 0,
      "post_like": 0,
      "comment": 0,
      "photo_view": 0,
      "link_click": 0,
      "video_play": 0,
      "question_vote": 0
   },...

谢谢,阿米特

4

1 回答 1

0

您是否忘记使用 1、7 或 28 天的时间戳,并根据广告帐户本身的时区进行调整?这是这里最可能的解释

例如,如果您的广告帐户 ( /act_<ACCOUNT_NUMBER_HERE) 是这样的:

  "account_id": "<SNIP>", 
  "id": "act_<SNIP", 
  "name": "<SNIP> default (EUR) account", 
  "account_status": 1, 
  "currency": "EUR", 
  "timezone_id": 69, 
  "timezone_name": "Europe/Dublin", 
  "timezone_offset_hours_utc": 1, 

您需要将统计调用的时间戳调整为 UTC +1

因此,为了检索独特的统计数据,您需要从午夜到午夜,在 UTC +1 中请求 1、7 或 28 天的数据,这个示例应该适合您:

<SNIP>/stats/2013-02-01 00:00:00 +0100/2013-03-01 00:00:00 +0100

或者

<SNIP>/stats/1359673200/1362092400

示例响应(截断)

{
  "id": "<SNIP>/stats/1359673200/1362092400", 
  "impressions": "166561", 
  "clicks": "6304", 
  "spent": "45257", 
  "social_impressions": "166556", 
  "social_clicks": "6304", 
  "social_spent": "45257", 
  "unique_impressions": 111368, 
  "social_unique_impressions": 111368, 
  "unique_clicks": 5992, 
  "social_unique_clicks": 5992, 
  "actions": {
于 2013-05-01T17:55:35.340 回答