0
我怎样才能在使用Facebook的PHP SDK V2.8如何获得广告活动花费Facebook上的跟踪广告API PHP SDK?
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();
}
我的广告帐户ID的活动,我只是得到一个错误这样
致命错误(!):未捕获的异常' FacebookAds \ Http \ Exception \ AuthorizationException'中的消息'(#2)Service暂时不可用'在线140上的/htdocs/vendor/facebook/php-ads-sdk/src/FacebookAds/Http/Exception/RequestException.php
我只想在我的广告帐户I下获得所有广告系列D.