facebook / facebook-python-business-sdk

Python SDK for Meta Marketing APIs
https://developers.facebook.com/docs/business-sdk
Other
1.27k stars 629 forks source link

AdCreatives Endpoint is incorrect #643

Open MarthinusBosman opened 12 months ago

MarthinusBosman commented 12 months ago

All endpoints in to api.call point to "/" in ./facebook_business/adobjects/adcreative.py, when it should be "adcreatives". This causes any api_get or api.call functions to return a (#100) Tried accessing nonexisting field (field) on node type (Ad) error when fields are added.

sjara11 commented 9 months ago

@MarthinusBosman I checked your issue and I think that the behavior you described is not wrong. That's how it should be because the Cursor (class) gets the correct endpoint name through target_objects_class. in this case, the AdCreatives (class) with the method get_endpoint => adcreatives.

Let me know if this helps you.