在业务经理中创建广告帐户时禁止限制

时间:2016-11-16 12:29:16

标签: facebook-graph-api facebook-php-sdk facebook-marketing-api

我有商家帐户和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,我们必须使用用户权限,然后才能避免此错误。

但在业务经理中创建广告帐户时,用户权限不起作用。它在更新广告帐户时运行良好。以下代码,我正在使用。

$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);

有任何建议我如何在创建广告帐户时使用用户权限,以便我可以取消广告帐户限制问题?

1 个答案:

答案 0 :(得分:0)

您必须应用于应用的进一步访问级别 https://developers.facebook.com/docs/marketing-api/access

  
      
  • 开发:在Facebook平台上试用API并测试应用程序。
  •   
  • 基本:进一步测试,迭代,构建一个最多包含25个外部帐户的应用程序。
  •   
  • 标准:使用无限制帐户来扩展您的业务,并且可以   被提名成为Facebook营销合作伙伴。
  •   
相关问题