Skip to content

Commit

Permalink
InstagramAccount
Browse files Browse the repository at this point in the history
  • Loading branch information
edbizarro committed Apr 25, 2019
1 parent f0bd58d commit 7060506
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions src/Entities/InstagramAccount.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<?php

namespace Edbizarro\LaravelFacebookAds\Entities;

use Illuminate\Support\Collection;
use Edbizarro\LaravelFacebookAds\Traits\AdFormatter;

/**
* Class AdAccount.
*/
class InstagramAccount extends AbstractEntity
{
use AdFormatter;

/**
* Get the account ads.
*
* @param array $fields
*
* @return Collection
*
* @see https://developers.facebook.com/docs/marketing-api/reference/adgroup#Reading
* @throws \Edbizarro\LaravelFacebookAds\Exceptions\MissingEntityFormatter
*/
public function ads(array $fields = []): Collection
{
$ads = $this->response->getAds($fields);
return $this->format($ads);
}
}

0 comments on commit 7060506

Please sign in to comment.