Facebook Marketing API获得多个广告集的总覆盖率 [英] Facebook Marketing API get total reach of multiple Ad Sets

查看:164
本文介绍了Facebook Marketing API获得多个广告集的总覆盖率的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用Marketing API获取多个广告集的摘要数据.

I am trying to use the Marketing API to get the summary data for multiple Ad Sets.

我可以通过以下方式获取每个广告集的数据:

I am able to get the data for each Ad Set with the following:

insights/?ids=[**ad_set_ids**]&fields=impressions,clicks,reach,actions,total_actions

我可以将每个广告集的数字相加以获得总数,除了覆盖率"之外,这还不错,因为覆盖率的总和不仅是与总数相加的(请参见下图).

I can add up the numbers for each Ad Set to get the total and it is fine except for "reach" because the total of reach doesn't just add up to the total (see image below).

是否可以获取广告集数据摘要(图像"3个广告集的结果"中的最后一行)?

Is there any way to get the summary of data for the ad sets (the last row in the image "Results from 3 Ad Sets")?

我还尝试添加参数default_summary=true,但这为我提供了每个广告集的摘要,而不是所有广告集的总和.

I also tried to add the param default_summary=true but it gives me the summary for each ad set instead of the sum of all ad sets.

推荐答案

您实际需要使用Summary字段来实现此目的.例如,您可以在广告帐户级别查询您的见解,然后指定level = adset.然后,在过滤环中,指定adset.id的列表.而且非常重要的是,您应该添加summary = ["reach"],以便获得汇总的覆盖率.

What you actually need to use the summary field to achieve this. For example you can query your insights at ad account level and then specify level=adset. Then in the filterring, you specify a list of adset.id. And very important you should add summary=["reach"], so that you can get aggregated reach.

这里是一个例子:

https://graph. facebook.com/act_ [acc_id]/insights?limit = 5000& level = adset& summary = ["reach"]& date_preset = lifetime& action_attribution_windows = ["default"]& filtering = [{"field:" adset.id," operator:" IN," value:[adsetID1]" [," [adsetID2]]}]]

https://graph.facebook.com/act_[acc_id]/insights?limit=5000&level=adset&summary=["reach"]&date_preset=lifetime&action_attribution_windows=["default"]&filtering=[{"field":"adset.id","operator":"IN","value":[adsetID1]"[","[adsetID2]"]}]

实际上,您也可以在广告系列节点而不是adaccount节点上执行此操作.它可以为您提供更好的性能.

And actually you can do this on a campaign node instead of adaccount node too. It may give you better performance.

这篇关于Facebook Marketing API获得多个广告集的总覆盖率的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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