使用Snapchat Marketing API将用户上传到细分受众群有什么限制?

时间:2019-05-08 11:30:49

标签: python api snapchat

我正在尝试使用Snapchat's Marketing API将用户上传到已创建的Snap Audience Match(SAM)段。问题是,当尝试上传大量用户时,我收到一个有关用户规模的错误消息,应分为多个请求。

我在其文档中找不到每个请求允许的用户数限制。

我尝试将用户列表分为任意数量,并且可以正常工作。但是,不能将其推广到我要上传的所有用户列表。

这是Snapchat请求添加两个用户的示例:

curl -X POST \
  -H "Authorization: Bearer meowmeowmeow" \
  -H "Content-Type: application/json" \
   -d '{"users":[{"id": "5132209967071232", "schema":["EMAIL_SHA256"],"data":[["c3a75685a45a565954512a7f006b691b5e06c0efe6ac28bd5c09e84bbe022b55"],["5b5fbfe6a42915ca4d0f11620e76abd1a4ac621bcca95395ce3b6b11ec01bef6"]]}]}' \
   "https://adsapi.snapchat.com/v1/segments/{segment_id}/users"

这是回应:

{
  "request_status": "SUCCESS",
  "request_id": "57c4d34700ff0d538b8ba40ed90001737e7465616d6b6f363139000173616d2d68616f6d696e672d757365722d746573740001010c",
  "users": [
    {
      "sub_request_status": "SUCCESS",
      "user": {
        "number_uploaded_users": 2,
        "number_invalid_users": 0
      }
    }
  ]
}

添加N个(大于2万)用户时,这是我得到的响应:

{  
   "users":[  
      {  
         "sub_request_error_reason":"Error code: E2704, message: Over the limit of users that can be uploaded in one total request : [Over the limit of users that can be uploaded in one total request]",
         "sub_request_status":"ERROR"
      }
   ],
   "request_status":"ERROR"
}

0 个答案:

没有答案