Skip to content

Commit

Permalink
handle pagination
Browse files Browse the repository at this point in the history
  • Loading branch information
edbizarro committed Oct 10, 2018
1 parent 421c63e commit 9b98218
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/FormatResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

trait FormatResponse
{
protected function format(Cursor $response)
protected function format($response)
{
$data = new Collection;

Expand Down
31 changes: 31 additions & 0 deletions tests/LaravelFacebookAds/BaseTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,37 @@ public function tearDown()
public function setUp()
{
parent::setUp();

dd(FacebookAds::insights(
Period::days(30),
$this->etlJob['params']['account_id'],
AdsInsightsLevelValues::AD,
[
'fields' => [
'account_id',
'account_name',
'campaign_id',
'campaign_name',
'ad_id',
'ad_name',
'adset_id',
'adset_name',
'actions',
'impressions',
'clicks',
'unique_clicks',
'spend',
'social_spend',
'reach',
'video_10_sec_watched_actions',
'video_30_sec_watched_actions',
'video_p25_watched_actions',
'video_p50_watched_actions',
'video_p75_watched_actions',
'video_p100_watched_actions'
]
]
));
}

protected function getPackageProviders($app)
Expand Down

0 comments on commit 9b98218

Please sign in to comment.