[英]What is this? (Facebook Offline Conversions API) Error #21009 - The data set upload is temporarily not ready
[英]Purchase event has been uploaded via Offline Conversions API, but the Event Set does not show any data
我按照這里的指南操作: https://developers.facebook.com/docs/marketing-api/offline-conversions
與在其儀表板中包含“測試事件”選項卡的“常規”事件集不同,離線事件集似乎沒有此功能。 您必須上傳 CSV 或致電 API。
但是,離線事件集顯示根本沒有來自 API 的數據; 歷史選項卡僅顯示 CSV 次上傳,這些上傳是“10 天前最后一次接收”。 它甚至不包括我今天所做的測試上傳。
這是一個錯誤嗎? 我應該等待多長時間才能讓數據顯示在我的線下活動的活動管理器中?
樣品調用
POST https://graph.facebook.com/v15.0/<offline_event_set_id>/events?access_token=<system_user_access_token>
{
"upload_tag": "store_data",
"data": [
{
"match_keys": {
"em": "<hashed>",
"ph": "<hashed>"
},
"currency": "PHP",
"value": 100,
"event_id": "test",
"event_name": "Purchase",
"event_time": "1669633380",
"custom_data": {
"event_source": "in_store"
},
"action_source": "physical_store",
"order_id": "test",
"data_processing_options": []
}
]
}
響應如下:
{"id":"<offline_event_set_id>","num_processed_entries":1}
這似乎表明事件已成功上傳。 但是該事件永遠不會顯示在該離線事件集的“概覽”選項卡中。
將不勝感激其他地方的任何見解/指南/答案,我在這方面花了幾天時間但沒有成功。
“錯誤”:我將event_time
編碼為字符串,而 Facebook 期望此值為 integer。更新我的 POST 正文以更正該問題后,事件在幾分鍾內開始顯示在“概覽”選項卡中。
{
"upload_tag": "store_data",
"data": [
{
"match_keys": {
"em": "<hashed>",
"ph": "<hashed>"
},
"currency": "PHP",
"value": 100,
"event_id": "test",
"event_name": "Purchase",
"event_time": 1669633380, // <-- The only change was removing the quotes
"custom_data": {
"event_source": "in_store"
},
"action_source": "physical_store",
"order_id": "test",
"data_processing_options": []
}
]
}
我真的希望 Facebook 返回某種錯誤或警告,但至少我找到了問題所在。 小心你的數據類型,伙計們!
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.