From ceecf68ea7da940ff84c8897a7cd6ccf711f88a4 Mon Sep 17 00:00:00 2001 From: gibbs160 <50058116+gibbs160@users.noreply.github.com> Date: Mon, 19 Apr 2021 10:26:02 -0700 Subject: [PATCH] Error when event pushes Facebook API does not accept an event without the "upload_tag" or "upload_id" so I changed the example to reflect that. I do however still get a warning saying "data might not be compatible. Expect list; got ". I am not sure what this error is or if it is hindering the API from accepting the event. --- examples/AdsPixelEventsPost.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/AdsPixelEventsPost.py b/examples/AdsPixelEventsPost.py index 3ef2a4e6..3bc48c29 100644 --- a/examples/AdsPixelEventsPost.py +++ b/examples/AdsPixelEventsPost.py @@ -30,9 +30,9 @@ fields = [ ] params = { - 'data': [{'event_name':'PageView','event_time':1614195236,'user_data':{'fbc':'fb.1.1554763741205.AbCdEfGhIjKlMnOpQrStUvWxYz1234567890','fbp':'fb.1.1558571054389.1098115397','em':'309a0a5c3e211326ae75ca18196d301a9bdbd1a882a4d2569511033da23f0abd'}}], + 'upload_tag':'page_view','data': [{'event_name':'PageView','event_time':1614195236,'user_data':{'fbc':'fb.1.1554763741205.AbCdEfGhIjKlMnOpQrStUvWxYz1234567890','fbp':'fb.1.1558571054389.1098115397','em':'309a0a5c3e211326ae75ca18196d301a9bdbd1a882a4d2569511033da23f0abd'}}], } print AdsPixel(id).create_event( fields=fields, params=params, -) \ No newline at end of file +)