0
我有商業帳戶和2個廣告帳戶。當我嘗試創建第三個廣告帳戶時,出現以下錯誤。在業務經理中創建廣告帳戶時取消限制
You have exceeded the number of allowed ad accounts for your Business Manager at this time.
和
(#10) You do not have permission to perform this action. This action requires that you can MODIFY_AD_ACCOUNTS for this business account.
按照Facebook的https://developers.facebook.com/docs/marketing-api/reference/ad-account,我們必須使用userpermissions那麼我們就可以避開這個錯誤。
但在業務經理中創建廣告帳戶時用戶權限不起作用。在更新廣告帳戶方面工作正常。下面的代碼,我正在使用。
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL,'https://graph.facebook.com/v2.8/'.$associative_arr['businessId'].'/adaccount/userpermissions');
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, $attachment);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$result = curl_exec($ch);
curl_close ($ch);
任何建議我如何使用用戶權限在創建廣告帳戶,這樣可以抑制廣告帳戶的限制問題?
我已經有喜歡的廣告管理的基本接入,business_management和標準訪問 – Jass
所有訪問級別如何,你想製作的廣告帳戶? – bertucho
與訪問令牌相關的用戶是否在Business Manager中具有管理員角色? – bertucho