facebookarchive / offline-conversion-file-uploader

A tool to upload offline conversions (in a CSV file) to Facebook.
46 stars 27 forks source link

The events provided to upload to an Offline Conversion dataset should be in the form of an array #26

Open chaitu1124 opened 4 years ago

chaitu1124 commented 4 years ago

Hi - Getting the following error. Nothing was changed from my end either in code or data.

Error Message:

"event_index":14,"message":"Limited Data Use Selection Required: From July 1 to August 1, you must indicate whether usage should be limited for data sent via this API to be processed. You can learn how to implement Limited Data Use here - https:\/\/www.facebook.com\/business\/help\/1151133471911882","type":"CodedException","code":2804030}},"error_subcode":1815356,"is_transient":false,"error_user_title":"Array of offline conversion events is invalid.","error_user_msg":"The events provided to upload to an Offline Conversion dataset should be in the form of an array. And each event should conform to specifications based on the type of the event.","fbtrace_id":"ASEDB9_h4AcaCCyvrUfiSxP"}} 2020-07-29T13:55:30.590Z WARN Batch [2525714, 2840337): API error: Invalid parameter

Lach1222 commented 4 years ago

You will need to add the data_processing_options attribute to your data source as it is now required by default.

You can read more about the new requirements here. https://developers.facebook.com/docs/marketing-apis/data-processing-options#offline-conversions-automated-uploader https://github.com/facebookincubator/offline-conversion-file-uploader/blob/master/offline-events/README.md?fbclid=IwAR3UApJWcYFr3gS8-Y_Bx8mpRTFCHFiHUPzDaYOqI9RQNymZ7LETgMno3gk

Lach1222 commented 4 years ago

This is also explained in issues #25