Facebook Marketing API-在开发模式下创建广告

时间:2019-01-01 09:56:00

标签: facebook facebook-graph-api facebook-marketing-api facebook-python-business-sdk

我正在使用Facebook Marketing API的SDK(python)来实现应用程序,对此我是一个新手,但是我阅读了文档,并能够创建广告系列和广告集。但不适用于广告素材。错误是我的应用程序处于开发模式,我需要将其切换为公开。

Status:  400
  Response:
    {
      "error": {
        "message": "Invalid parameter",
        "type": "OAuthException",
        "code": 100,
        "error_subcode": 1885183,
        "is_transient": false,
        "error_user_title": "Ads creative post was created by an app that is in development mode",
        "error_user_msg": "Ads creative post was created by an app that is in development mode. It must be in public to create this ad.",
        "fbtrace_id": "Dxgr83ugqSu"
      }
    }

一旦我这样做,就会发生另一个错误,指出应该授予扩展权限:

Status:  403
 Response:
   {
     “error”: {
       “message”: “(#294) Managing advertisements requires an access token with the extended permission for ads_management”,
       “type”: “OAuthException”,
       “code”: 294,
       “fbtrace_id”: “HZ8N55VciZg”
     }
   }

我的理解是,在尝试推送广告之前,我需要提交我的应用以供审核。但是,我想知道是否可以不这样做就推送广告?为了测试我的脚本?

注意:沙盒模式也是如此。

如果这听起来像是一个幼稚的问题,表示歉意。

0 个答案:

没有答案