我正在尝试使用多个键EMAIL_SHA256, MOBILE_AD_ID_SHA256 and PHONE_SHA256
将用户添加到同一段。
在doc
中有一个使用单个键EMAIL_SHA256
的示例
-- request
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"
-- response
{
"request_status": "SUCCESS",
"request_id": "57c4d34700ff0d538b8ba40ed90001737e7465616d6b6f363139000173616d2d68616f6d696e672d757365722d746573740001010c",
"users": [
{
"sub_request_status": "SUCCESS",
"user": {
"number_uploaded_users": 2,
"number_invalid_users": 0
}
}
]
}
我尝试在shema
中指定多个键:EMAIL_SHA256
和PHONE_SHA256
-- request
curl -X POST \
-H "Authorization: Bearer XXXX_ACCESS_TOKEN_XXXX" \
-H "Content-Type: application/json" -d '{"users":[{"schema":["EMAIL_SHA256", "PHONE_SHA256"],"data":[["c3a75685a45a565954512a7f006b691b5e06c0efe6ac28bd5c09e84bbe022b55", "9e52eddf6917db108e7dec2629f291815390be09cf23d9d4f7455d7213e51df5"],["", "9e52eddf6917db108e7dec2629f291815390be09cf23d9d4f7455d7213e51df5"],["c3a75685a45a565954512a7f006b691b5e06c0efe6ac28bd5c09e84bbe032b55", "9e52eddf6917db108e7dec2629f291815390be09cf23d9d4f7455d7213e51df5"],["", ""]],"id":"4588981027625965"}]}' \
"https://adsapi.snapchat.com/v1/segments/XXX_SEGMENT_ID_XXXXX/users"
我有一个错误
{"request_status":"ERROR","request_id":"5d3b0a9400ff0c81af2612a4c60001737e616473617069736300016275696c642d32366161643661332d312d3237362d3100010112","users":[{"sub_request_error_reason":"Error code: E2956, message: Invalid Snap Audience Match segment request : [Invalid Snap Audience Match segment request]","sub_request_status":"ERROR"}]}
我试图在users
数组中指定另一个键
curl -X POST \
-H "Authorization: Bearer XXXX_ACCESS_TOKEN_XXXX" \
-H "Content-Type: application/json" \
-d '{"users":[{"schema":["MOBILE_AD_ID_SHA256"],"data":[["c3a75685a45a565954512a7f006b691b5e06c0efe6ac28bd5c09e84bbe022b55"],["c3a75685a45a565954512a7f006b691b5e06c0efe6ac28bd5c09e84bbe022b55"],["c3a75685a45a565954512a7f006b691b5e06c0efe2ac28bd5c09e84bbe022b55"],[""]],"id":"123456"},{"schema":["EMAIL_SHA256"],"data":[["c3a75685a45a565954512a7f006b691b5e06c0efe6ac28bd5c09e84bbe022b55"],["c3a75685a45a565954512a7f006b691b5e06c0efe6ac28bd5c09e84bbe022b55"],[""],[""]],"id":"123457"}]}' \
"https://adsapi.snapchat.com/v1/segments/XXX_SEGMENT_ID_XXX/users"
我还有另一个错误
{"request_status":"PARTIAL","request_id":"5d3b0aef00ff0e013ce25505b30001737e616473617069736300016275696c642d32366161643661332d312d3237362d3100010139",
"users":[{"sub_request_status":"SUCCESS","user":{"number_uploaded_users":2}},
{"sub_request_error_reason":"Error code: E1005, message: This sub request has the same ID as another sub-request in the batch : [6011602767676096]","sub_request_status":"ERROR"}]
将用户添加到Snapchat细分时,如何指定多个键?