When calling the stats/accounts/:account_id/campaigns endpoint, I’m sometimes getting the following response:
[{“message”: “Cost limit exceeded”, “code”: “COST_LIMIT_EXCEEDED”}]
This seems to have started happening around 4/22. I don’t see any cost limitation on this endpoint in the docs - can you clarify what is causing this error and how we can prevent it?
On a related note, I regularly make calls to get all campaign stats for a period of time in a given account. Currently I split my list of campaigns that were active during that period into chunks of 50 campaign IDs and call the API once per chunk. Many of these campaigns won’t have any stats during the period so this is very inefficient. Can you suggest a better approach for getting all campaign stats for an account efficiently?