Facebook graph api 获取页面喜好、帖子共享和网站点击数
我如何才能获得页面喜欢,帖子分享和网站点击数的广告组聚合。通过字段“inline_actions”(/reportstats/date_preset=dayed&data_columns=['adgroup_id','inline_actions']和actions_group_by=['action_type'])获取帖子评论和帖子喜好。我需要一种使用api获取这些报表项的方法,就像使用api返回一样。要获取每个adgroup级别的数据,您必须在Facebook graph api 获取页面喜好、帖子共享和网站点击数,facebook-graph-api,facebook-ads-api,Facebook Graph Api,Facebook Ads Api,我如何才能获得页面喜欢,帖子分享和网站点击数的广告组聚合。通过字段“inline_actions”(/reportstats/date_preset=dayed&data_columns=['adgroup_id','inline_actions']和actions_group_by=['action_type'])获取帖子评论和帖子喜好。我需要一种使用api获取这些报表项的方法,就像使用api返回一样。要获取每个adgroup级别的数据,您必须在数据列中包含adgroup\u id或adgro
数据列
中包含adgroup\u id
或adgroup\u name
注释、喜欢和许多其他操作将在列actions
您可以通过指定筛选器指定感兴趣的操作类型:
filters=[
{
"field": "action_type",
"type": "in",
"value": [
"like",
"page_engagement",
"post_engagement",
"post_like",
"comment",
"games.plays",
"post",
"photo_view",
"link_click",
"receive_offer",
"checkin",
"mention",
"tab_view",
"vote",
"follow",
"gift_sale",
"video_play",
"video_view",
"offsite_conversion",
"offsite_conversion.checkout",
"offsite_conversion.registration",
"offsite_conversion.lead",
"offsite_conversion.key_page_view",
"offsite_conversion.add_to_cart",
"offsite_conversion.other",
"app_install",
"app_engagement",
"app_story",
"app_use",
"credit_spent",
"mobile_app_install",
"app_custom_event",
"app_custom_event.fb_mobile_activate_app",
"app_custom_event.fb_mobile_complete_registration",
"app_custom_event.fb_mobile_content_view",
"app_custom_event.fb_mobile_search",
"app_custom_event.fb_mobile_rate",
"app_custom_event.fb_mobile_tutorial_completion",
"app_custom_event.fb_mobile_add_to_cart",
"app_custom_event.fb_mobile_add_to_wishlist",
"app_custom_event.fb_mobile_initiated_checkout",
"app_custom_event.fb_mobile_add_payment_info",
"app_custom_event.fb_mobile_purchase",
"app_custom_event.fb_mobile_level_achieved",
"app_custom_event.fb_mobile_achievement_unlocked",
"app_custom_event.fb_mobile_spent_credits",
"app_custom_event.other",
"rsvp"
]
}
]
但是,这是可选的IIRC,默认情况下,API应向您发送所有非零操作。最简单的方法是通过报告接口配置所需的报告,对其进行调度,然后使用:/act\adreportschedules通过API读回配置