faruque/facebook-ads-export

A PHP Library for exporting Facebook Advertising Insights

1.0.1 2016-10-11 10:11 UTC

This package is not auto-updated.

Last update: 2024-04-17 17:35:55 UTC


README

This library exports insights of Facebook Ads daily. The exported file format is CSV

Build Status

Installation using Composer

$ composer require faruque/facebook-ads-export 

Usage

<?php

require __DIR__ . '/vendor/autoload.php';

use FacebookAdsExporter\FacebookAdsExporter;

$facebookAdsExporter = FacebookAdsExporter::create();
$adInsights = $facebookAdsExporter->fetch($date);
$facebookAdsExporter->export($adInsights, $path);

$date = "2016-09-18";
$path = 'facebook-ads-insights.csv';

Credits

FacebookAdsExport has been developed by the Safique Ahmed Faruque team.