Skip to content
Advertisement

Facebook Marketing API Ads Insights to CSV in Python

How to export the response of Facebook Marketing API Ads insights to CSV.

Below are my code and the response from it.

JavaScript

Response is

JavaScript

How can we export this response to CSV format? Any suggestion will be highly appreciated.

Advertisement

Answer

JavaScript

Interact with the adinsights objects as dictionaries and add them to dataframe before saving as csv!

User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement