'Facebook Insights API

I am using Facebook Insights API for pulling clicks, impressions, and spending for the last 90 days. Our code is able to pull rows up to 8K, if the response goes higher the code throws the following error.

Error while getting rows from API,

Message: Call was not successful Method: GET Path: https://graph.facebook.com/v13.0/act_**********/insights Params: {'fields': '["account_id","account_name","campaign_id","campaign_name","adset_id","adset_name","impressions","clicks","spend"]', 'date_preset': 'last_90d', 'time_increment': 1, 'level': 'adset', 'limit': '500'}

Status: 500 Response: { "error": { "code": 1, "message": "Please reduce the amount of data you're asking for, then retry your request" } }

Is there a way to resolve this issue or do we need to report to the Facebook team to increase limits?

Thanks,



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source