From e571145e979dbb4af229c72e894748bfb0ad0b5a Mon Sep 17 00:00:00 2001 From: Rajiv Sud Date: Mon, 26 Feb 2018 16:04:50 -0800 Subject: [PATCH] update fi - remove cancelled and paused, added entity_status --- twitter_ads/campaign.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/twitter_ads/campaign.py b/twitter_ads/campaign.py index 6ceb496..542985c 100644 --- a/twitter_ads/campaign.py +++ b/twitter_ads/campaign.py @@ -60,7 +60,6 @@ class FundingInstrument(Resource, Persistence): # read-only resource_property(FundingInstrument, 'id', readonly=True) resource_property(FundingInstrument, 'name', readonly=True) -resource_property(FundingInstrument, 'cancelled', readonly=True, transform=TRANSFORM.BOOL) resource_property(FundingInstrument, 'credit_limit_local_micro', readonly=True) resource_property(FundingInstrument, 'currency', readonly=True) resource_property(FundingInstrument, 'description', readonly=True) @@ -70,9 +69,10 @@ class FundingInstrument(Resource, Persistence): resource_property(FundingInstrument, 'updated_at', readonly=True, transform=TRANSFORM.TIME) resource_property(FundingInstrument, 'deleted', readonly=True, transform=TRANSFORM.BOOL) resource_property(FundingInstrument, 'able_to_fund', readonly=True, transform=TRANSFORM.BOOL) -resource_property(FundingInstrument, 'paused', readonly=True, transform=TRANSFORM.BOOL) +resource_property(FundingInstrument, 'entity_status', readonly=True) resource_property(FundingInstrument, 'io_header', readonly=True) -resource_property(FundingInstrument, 'reasons_not_able_to_fund', readonly=True) +resource_property(FundingInstrument, 'reasons_not_able_to_fund', readonly=True, + transform=TRANSFORM.LIST) resource_property(FundingInstrument, 'start_time', readonly=True) resource_property(FundingInstrument, 'end_time', readonly=True) resource_property(FundingInstrument, 'credit_remaining_local_micro', readonly=True)