Skip to content

Commit

Permalink
Merge pull request singer-io#63 from singer-io/revert-62-facebook_dma
Browse files Browse the repository at this point in the history
Revert "Add Designated Market Area (DMA) breakdown for Insights report"
  • Loading branch information
Christopher Merrick authored Jul 25, 2019
2 parents 4db3088 + d9d96c6 commit 9954380
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions tap_facebook/__init__.py
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,7 @@
'ads_insights_age_and_gender',
'ads_insights_country',
'ads_insights_platform_and_device',
'ads_insights_region',
'ads_insights_dma',
]
'ads_insights_region']

REQUIRED_CONFIG_KEYS = ['start_date', 'account_id', 'access_token']
UPDATED_TIME_KEY = 'updated_time'
Expand All @@ -65,8 +63,7 @@
'ads_insights_age_and_gender': START_DATE_KEY,
'ads_insights_country': START_DATE_KEY,
'ads_insights_platform_and_device': START_DATE_KEY,
'ads_insights_region': START_DATE_KEY,
'ads_insights_dma': START_DATE_KEY,
'ads_insights_region': START_DATE_KEY
}

LOGGER = singer.get_logger()
Expand Down Expand Up @@ -408,7 +405,7 @@ class AdsInsights(Stream):
bookmark_key = START_DATE_KEY

invalid_insights_fields = ['impression_device', 'publisher_platform', 'platform_position',
'age', 'gender', 'country', 'placement', 'region', 'dma']
'age', 'gender', 'country', 'placement', 'region']

# pylint: disable=no-member,unsubscriptable-object,attribute-defined-outside-init
def __attrs_post_init__(self):
Expand Down Expand Up @@ -521,9 +518,7 @@ def __iter__(self):
"primary-keys": ['publisher_platform',
'platform_position', 'impression_device']},
'ads_insights_region': {'breakdowns': ['region'],
'primary-keys': ['region']},
'ads_insights_dma': {"breakdowns": ['dma'],
"primary-keys": ['dma']},
'primary-keys': ['region']}
}


Expand Down

0 comments on commit 9954380

Please sign in to comment.