0
我試圖從前一天獲取特定廣告帳戶的支出。每當我發出了請求:Facebook API獲取廣告帳戶廣告支出
$api = Api::instance();
$account = new AdAccount('act_<account_id>');
$params = array(
'level' => 'account',
'date_preset' => 'yesterday',
'fields' => ['spend', 'account_id'],
);
$insights = $account->getInsights(array(), $params);
print_r($insights);
我得到一個大的保護對象回來,似乎無法找到任何文件,至於如何訪問實際的請求的數據。