Read all ad campaign from Facebook Marketing API

I’m using Facebook Marketing API to get ad campaingn from Facebook. I’m getting the data, but the problem is, they are sending the data with pagination. I have the url for the next set of data, so I need to call the Facebook API multiple times. I can set the data limit in the request to a huge number so that I can get all the data at a time.

Is there any other option to get all the data?

I tried with until & since parameter and sending the timestamp of current time & 0, but it didn’t worked.

So is there any other way out?


Source: facebook

Leave a Reply