Mauro
Mauro

Reputation: 11

FACEBOOK GRAPH API time range setting does not works

I'm trying to use api explorer tool at https://developers.facebook.com/tools/explorer/ to get the spend amount for each ad inside my business account using this query

act_000000000000/insights?fields=unique_impressions,spend&level=ad

but the tool seems not to understand the time-range filter and any of these methods are ininfluent

Upvotes: 1

Views: 2142

Answers (2)

Nacho
Nacho

Reputation: 1

try this

&time_range[since]={date.set('1982-12-12').format('yyyy-MM-dd')}&time_range[until]={date.today}

Upvotes: 0

Karol Z. Błaszczyk
Karol Z. Błaszczyk

Reputation: 111

Try following syntax:

...&time_range={"since":"2016-02-15","until":"2016-02-16"}

Upvotes: 0

Related Questions