Facebook Marketing API-自定义受众添加用户错误

时间:2019-01-30 15:40:19

标签: python facebook sdk

我正在尝试使用Python sdk将电子邮件上传到Facebook中的自定义受众。

当我运行以下代码时:

custom_audience.add_users(schema=CustomAudience.Schema.email_hash, users= row)

我收到以下错误消息:

  Message: Call was not successful
  Method:  POST
  Path:    https://graph.facebook.com/v3.2/6081191225539/users
  Params:  {'payload': '{"data":["1xdaffdadfdfxsfr20af0a394c8fc0bc
0ee1b77bd1dbbcc320"],"is_raw":false,"schema":"EMAIL_SHA256"}'}

  Status:  400
  Response:
    {
      "error": {
        "message": "(#2650) Failed to update the custom audience: This audience
was created from data source FILE_IMPORTED.MULTI_HASHES, which does not support
data source FILE_IMPORTED.HASHES_OR_USER_IDS.",
        "code": 2650,
        "type": "OAuthException",
        "fbtrace_id": "GtE4doqVEsS"
      }
    }

有人知道我该如何解决吗?我找不到有关该错误的任何文档。有趣的是,如果我通过API(而不是UI)创建自定义受众群体,则效果很好。我的问题是我需要更新数百个通过UI创建的受众。

0 个答案:

没有答案