How to break ideas a day through Facebook api

I want to receive daily data to try to use the bottom edge to request recording by recording (day after day). If there is data within 30 days, I have to request 30 times.

/ field ideas = impressions, social_clicks, website_clicks, and CTR amplifier; TIME_RANGE = {'so': '2015-01-01', 'before': '2015-01-01'}?

But if I can break using an edge such as the following, I will not need to query many times.

/ field insight = impressions, social_clicks, website_clicks, SSU &? Disruptions = DAY

Do you know how to break ideas for days?

+5
source share
1 answer

You can choose how to break days with the parameter, for daily information just use the time_increment parameter with a value of 1.

 /insights?fields=impressions,social_clicks,website_clicks,ctr&time_range={'since':'2015-01-01','until':'2015-01-30'}&time_increment=1 

Link: https://developers.facebook.com/docs/marketing-api/reference/ad-account/insights/

+8
source

Source: https://habr.com/ru/post/1237165/


All Articles