xdevplatform / twitter-python-ads-sdk

A Twitter supported and maintained Ads API SDK for Python.
https://twitterdev.github.io/twitter-python-ads-sdk/
MIT License
189 stars 106 forks source link

Account has no attribute "business_name" nor "business_id" #241

Closed dvainrub closed 4 years ago

dvainrub commented 4 years ago

The Account object is missing the "business_name" and "business_id" attribute, as you can see on the Twitter API. "business_name" and "business_id" are fields returned by the 'accounts' request.

I think the fix should be to add the following line of code on file 'account.py', line 186: resource_property(Account, 'business_id') resource_property(Account, 'business_name')

smaeda-ks commented 4 years ago

Thanks! https://github.com/twitterdev/twitter-python-ads-sdk/pull/244