Traceback (most recent call last):
File "/apps/automation_api/automation_api/runners.py", line 250, in create_campaigns
new_campaign.save()
File "/apps/automation_api/venv/local/lib/python2.7/site-packages/terminalone/models/campaign.py", line 150, in save
super(Entity, self).__setattr__('_init_sce', self.spend_cap_enabled)
File "/apps/automation_api/venv/local/lib/python2.7/site-packages/terminalone/entity.py", line 80, in __getattr__
raise AttributeError(attribute)
AttributeError: spend_cap_enabled
It looks like the attribute spend_cap_enabled should always be set on a Campaign instance but we don't end up setting it for some reason.
So we do something like the following in our code:
Which results in
It looks like the attribute
spend_cap_enabled
should always be set on aCampaign
instance but we don't end up setting it for some reason.