facebook - How to filter facebook API Campaign data by veiculation date
问题描述
As of now, my query is:
https://graph.facebook.com/v3.1/my_adact/campaigns?fields=name,insights{spend,reach,impressions,clicks},start_time,end_time&date_preset=this_month&limit=100
How should I make it so I can filter by campaigns that ran this month?}
Thanks!
解决方案
To see campaign stats for every campaign that was active this month you can use the following query and the insights endpoint:
https://graph.facebook.com/v3.1/act_xxxxxx/insights?date_preset=this_month&level=campaign&fields=campaign_name,campaign_id,spend,impressions,reach,actions,clicks
This will return the insights as defined in the field parameter rolled up to the campaign level as defined by the level parameter and for this_month.
推荐阅读
- r - 使用 R 进行 Vlookup
- c# - 如何比较两个填充了excel值的列表的最佳方法
- elasticsearch - Elasticsearch - 错误的字段类型
- ios - 30 分钟后延迟不适用于 Swift
- https - Symfony 4.4 https 无处不在
- html - 使用nodejs提交html表单的问题
- ruby - 传递接受块的方法
- node.js - 来自 AWS 应用程序负载均衡器的随机 502 错误
- django - nginx 失败,而网站仍然可以正常工作
- android - NestedScrollView/ ScrollView 在某些布局包含到 ScrollView 的子项时不滚动