广告终端上的时间范围过滤器(Facebook API) [英] time range filter on ads endpoint (Facebook API)

查看:99
本文介绍了广告终端上的时间范围过滤器(Facebook API)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在尝试使用/v2.7/{ad-account-id}/ads端点上的日期参数过滤广告结果

We are trying to filter results of ads using date parameters on the /v2.7/{ad-account-id}/ads endpoint

根据文档您可以使用 time_range 参数,但使用PHP SDK或图形资源管理器似乎无法正常工作,例如:

According to the docs, you can use a time_range parameter, but it doesn't seem to be working properly using the PHP SDK or the graph explorer, example:

act_ {1234456} / ads?time_range = {'since':'08-8-01','until':'08-8-12'}

act_{1234456}/ads?time_range={'since':'2016-08-01','until':'2016-08-12'}

文档很不清楚,因为有2个引用相同的广告终端,但每个参数都有不同的参数。

The documentation is pretty unclear on this because there is 2 references to the same ads endpoint but each with different params

https://developers.facebook.com/docs/marketing-api/reference/adgroup

https://developers.facebook。 com / docs / marketing-api / reference / ad-account / ads /

有没有人找到一种成功过滤日期/广告终端上的时间范围?

Has anyone found a way to successfully filter by date/time range on the ads endpoint?

推荐答案

使用 time_range param的正确方法如下:

The right way to use the time_range param is as follows:

&time_range[since]=YYYY-MM-DD&time_range[until]=YYYY-MM-DD

确保方括号不是网址编码的。

make sure that square brackets are not url-encoded.

这篇关于广告终端上的时间范围过滤器(Facebook API)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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