Facebook营销API选择字段 [英] Facebook Marketing API Select Fields

查看:281
本文介绍了Facebook营销API选择字段的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在这个营销api电话中获得只有非正式的转换:

  https://graph.facebook.com/ ?V2.8 /< ad_id> /见解字段=行动{ ACTION_TYPE:{ offsite_conversion}}&安培; =的access_token<令牌GT; 

但我得到动作中的所有字段。任何想法我在做错什么?

解决方案

可以使用参数:过滤 / p>

https://graph.facebook.com /v2.8/ ad_id /见解?

& fields = actions& action_breakdowns = action_type

& filters = {{字段:action_type,operator:CONTAIN,value:offsite_conversion.fb_pixel_complete_registration}]& access_token = 令牌


i want to get only offiste conversions within this marketing api call:

https://graph.facebook.com/v2.8/<ad_id>/insights?fields=actions{"action_type":{"offsite_conversion"}}&access_token=<token>

but i get all fields in "actions". any idea what i'm doing wrong?

解决方案

You can use parameter:"filtering"

https://graph.facebook.com/v2.8/ad_id/insights?
&fields=actions&action_breakdowns=action_type
&filtering={{"field":"action_type","operator":"CONTAIN","value":"offsite_conversion.fb_pixel_complete_registration"}]&access_token=token

这篇关于Facebook营销API选择字段的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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