PHP code example of faruque / facebook-ads-export
1. Go to this page and download the library: Download faruque/facebook-ads-export library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
faruque / facebook-ads-export example snippets
acebookAdsExporter\FacebookAdsExporter;
$facebookAdsExporter = FacebookAdsExporter::create();
$adInsights = $facebookAdsExporter->fetch($date);
$facebookAdsExporter->export($adInsights, $path);
$date = "2016-09-18";
$path = 'facebook-ads-insights.csv';