"AdsPixel.get_stats()" raise FacebookBadObjectError("Bad data to set object data") exception
facebookads/adobjects/objectparser.py(78) --->AbstractObject.create_object(....) facebookads/adobjects/abstractobject.py(166)--->new_object._set_data(data)
here, data = [{u'count': 10, u'value': u'PageView'}]
facebookads/adobjects/abstractobject.py(89)---> if hasattr(data, 'items'): # data has no item raise FacebookBadObjectError("Bad data to set object data")
This appears to be a duplicate of https://github.com/facebook/facebook-python-ads-sdk/issues/208. I have a pull request pending to fix the issue, under https://github.com/facebook/facebook-python-ads-sdk/pull/209.
oh, thank you very much.
but when this issue is merged to master.
I don't know, I haven't heard anything from the project admins, potentially it could take a while.
Hey Guys,
Thanks for pointing this out. We will fix this asap.
Closing this one. Will track using #208