facebook-python-business-sdk icon indicating copy to clipboard operation
facebook-python-business-sdk copied to clipboard

"AdsPixel.get_stats()" raise FacebookBadObjectError("Bad data to set object data") exception

Open yanbf opened this issue 10 years ago • 5 comments

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")

yanbf avatar Jun 16 '16 09:06 yanbf

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.

five-hundred-eleven avatar Jun 16 '16 14:06 five-hundred-eleven

oh, thank you very much.

but when this issue is merged to master.

yanbf avatar Jun 17 '16 01:06 yanbf

I don't know, I haven't heard anything from the project admins, potentially it could take a while.

five-hundred-eleven avatar Jun 17 '16 14:06 five-hundred-eleven

Hey Guys,

Thanks for pointing this out. We will fix this asap.

rituparnamukherjee avatar Jun 21 '16 20:06 rituparnamukherjee

Closing this one. Will track using #208

rituparnamukherjee avatar Jun 21 '16 20:06 rituparnamukherjee