Facebook Marketing API Ads Insights to CSV in Python
Facebook Marketing API Ads Insights to CSV in Python Question: How to export the response of Facebook Marketing API Ads insights to CSV. Below are my code and the response from it. from facebook_business.api import FacebookAdsApi from facebook_business.adobjects.adaccount import AdAccount app_id = ‘xxxxxxxxxxxxx’ app_secret = ‘xxxxxxxxxxxxx’ access_token = ‘xxxxxxxxx’ FacebookAdsApi.init(app_id, app_secret, access_token) params = {‘time_range’: …