使用Facebook Marketing API更新预算

问题描述

我正在尝试使用Facebook Marketing API(特别是python SDK)更新Facebook广告集的预算。代码简单明了:

params[AdSet.Field.daily_budget] = amount
a = AdSet(adset_id)
a.api_update(fields=[],params=params)

我回来的错误是:

Message: Call was not successful
  Method:  POST
  Path:    https://graph.facebook.com/v8.0/XXXXXXXXXXXXXXXX
  Params:  {'daily_budget': 5500}

  Status:  400
  Response:
    {
      "error": {
        "message": "Invalid parameter","type": "OAuthException","code": 100,"error_data": "null","error_subcode": 1487831,"is_transient": false,"error_user_title": "Your product set is invalid","error_user_msg": "Your product set cannot be loaded. It may be non-existent or inaccessible due to privacy reasons.",}
    }

似乎有一些关于权限的信息。我能够阅读所有内容,并且该用户已授予管理访问权限。我还看到错误文档https://developers.facebook.com/docs/marketing-api/error-reference中缺少error_subcode: 1487831

这曾经起作用,尽管不在同一帐户上。任何帮助将不胜感激!

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)