如何在我的广告帐户的 Graph API Explorer 上进一步过滤 Facebook Graph API 查询?
How to further filter Facebook Graph API query on Graph API Explorer for my ad account?
我正在尝试使用 Facebook Graph API v2.11 获取我的应用程序的广告支出和移动应用程序安装量以进行营销。在 Graph API Explorer 中,当我尝试
/act_<my account>/campaigns?fields=insights{actions,spend}&time_range={'since':'2017-07-07','until':'2017-12-12'}
在输出中,在 "insights" 下,我得到了一个这种类型的对象:
"data": [
{
"actions": [
{
"action_type": "comment",
"value": "3"
},
{
"action_type": "like",
"value": "33"
},
{
"action_type": "link_click",
"value": "1531"
},
{
"action_type": "mobile_app_install",
"value": "1049"
}
],
"spend": "8621.03",
"date_start": "2017-10-28",
"date_stop": "2017-11-26"
}
]
如果我希望它只获取操作类型为 "mobile_app_install" 的操作,我该如何进一步过滤我的查询?
我已经阅读了文档以及 github 上的 adsinsights.py 文件,但我找不到限制返回的 action_types 数量的方法。从 api.
检索数据后,您只需进行过滤即可
https://developers.facebook.com/docs/marketing-api/insights/parameters
https://github.com/facebook/facebook-python-ads-sdk/blob/master/facebookads/adobjects/adsinsights.py
可以在 Facebook 端过滤它,只需这样称呼即可:
/act_<yourAdAccount>/insights
?level=campaign
&fields=actions,spend
&time_increment=all_days
&time_range={'since':'2017-07-07','until':'2017-12-12'}
&filtering=[{field: "action_type",operator:"IN", value: ['mobile_app_install']}]
&use_account_attribution_setting=true
我正在尝试使用 Facebook Graph API v2.11 获取我的应用程序的广告支出和移动应用程序安装量以进行营销。在 Graph API Explorer 中,当我尝试
/act_<my account>/campaigns?fields=insights{actions,spend}&time_range={'since':'2017-07-07','until':'2017-12-12'}
在输出中,在 "insights" 下,我得到了一个这种类型的对象:
"data": [
{
"actions": [
{
"action_type": "comment",
"value": "3"
},
{
"action_type": "like",
"value": "33"
},
{
"action_type": "link_click",
"value": "1531"
},
{
"action_type": "mobile_app_install",
"value": "1049"
}
],
"spend": "8621.03",
"date_start": "2017-10-28",
"date_stop": "2017-11-26"
}
]
如果我希望它只获取操作类型为 "mobile_app_install" 的操作,我该如何进一步过滤我的查询?
我已经阅读了文档以及 github 上的 adsinsights.py 文件,但我找不到限制返回的 action_types 数量的方法。从 api.
检索数据后,您只需进行过滤即可https://developers.facebook.com/docs/marketing-api/insights/parameters
https://github.com/facebook/facebook-python-ads-sdk/blob/master/facebookads/adobjects/adsinsights.py
可以在 Facebook 端过滤它,只需这样称呼即可:
/act_<yourAdAccount>/insights
?level=campaign
&fields=actions,spend
&time_increment=all_days
&time_range={'since':'2017-07-07','until':'2017-12-12'}
&filtering=[{field: "action_type",operator:"IN", value: ['mobile_app_install']}]
&use_account_attribution_setting=true