facebook / facebook-python-business-sdk

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

No assigned_ad_accounts endpoint #503

Closed bnormoyle closed 6 years ago

bnormoyle commented 6 years ago

My issue #479 was closed with a promise it'll be in 'soon', but:

1) That's not a justification to close a real issue 2) It's been two months and the broken endpoint is still not deprecated in this codebase and the correct one still isn't being used.

Please add the assigned_ad_accounts endpoint.

jingping2015 commented 6 years ago

Do you want to get user's adaccounts ? Like this

user = User("...")
ad_accounts = user.get_ad_accounts();
print ad_accounts

Any error you got ?

bnormoyle commented 6 years ago

As I mentioned in the previous issue, that hits the adaccounts endpoint, which is deprecated. The new endpoint is assigned_ad_accounts.

jingping2015 commented 6 years ago

This will be fixed in out next few release. Thanks for reporting this.