'Campaign' object has no attribute 'currency' (twitter-ads==1.2.3)


#1

Hi,

I’m using twitter-ads version 1.2.3 but I got this error:

campaign.currency
Traceback (most recent call last):
File “”, line 1, in
AttributeError: ‘Campaign’ object has no attribute ‘currency’

I saw that v2.0.0 is released and that currency property is removed from Campaign:


but that should relate to v.2.0.0 only not to v.1.2.3.
It’s easy to reproduce this in python console. Can someone check this please.

Thanks!


#2

Thanks for catching this, @sinisa_grgic! The intention was to make currency read-only, not remove it. We’ll work to fix.


#3

@sinisa_grgic: We’ve merged the change to the Python SDK to include currency as a read-only campaign property. We’ll plan to release the v2.0.1 tomorrow.


#4

@juanshishido thanks for quick feedback! I’ll wait for new release and will use it.


#5

@juanshishido I tried version 2.0.1 and I can confirm that it’s working fine. Thanks!


#6