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

LineItem has no attribute "currency". #239

Closed dvainrub closed 4 years ago

dvainrub commented 4 years ago

The LineItem object is missing the "currency" attribute, as you can see on the Twitter API. "currency" is one of the fields returned by the 'line_items' request.

I think the fix should be to add the following line of code on file 'campaign.py', line 296: resource_property(LineItem, 'currency')

smaeda-ks commented 4 years ago

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