How can I get the campaigns on my Ad Account id using Facebook PHP SDK v2.8
public function sync_expenses_get()
{
//initialize credentials
$appId = $this->config->item('app_id');
$appSecret = $this->config->item('app_secret');
$accessToken = $this->config->item('access_token');
Api::init($appId, $appSecret, $accessToken);
$account = new AdAccount('act_<AD_ACCOUNT_ID>');
$cursor = $account->getCampaigns();
}
And I am just getting an error like this
( ! ) Fatal error: Uncaught exception 'FacebookAds\Http\Exception\AuthorizationException' with message '(#2) Service temporarily unavailable' in /htdocs/vendor/facebook/php-ads-sdk/src/FacebookAds/Http/Exception/RequestException.php on line 140
I just want to get first all the campaigns under my ad account ID.