I'm encountering an issue while attempting to retrieve the current ad spend for our ad accounts on Meta (formerly Facebook) using the Graph API. The goal is to integrate this data into an external dashboard for better monitoring and analysis.

Here's the endpoint I'm using:

https://graph.facebook.com/v19.0/act_<ad_acc_id>/insights?level=ad&date_preset=today&fields=ad_name,spend 

However, upon making the request, I receive an empty response:

{   "data": [   ] } 

I've double-checked the endpoint parameters and they seem correct. Is there something I might be missing or doing wrong in this request that's resulting in an empty response?

Tag:facebook-graph-api

Add a new comment.