Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TDL-9902 removed the automatic fields from ad ext report #85

5 changes: 1 addition & 4 deletions tap_bing_ads/reports.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,7 @@
'AdExtensionId',
'AdExtensionPropertyValue',
'AdExtensionType',
'AdExtensionTypeId',
'Clicks',
'Ctr',
'Impressions'
'AdExtensionTypeId' # removed `Impressions`, `Ctr,`, and `Clicks` from the required fields of `AdExtensionDetailReport`
],
'GoalsAndFunnelsReport': ['Goal'],
# added required fields for `AgeGenderAudienceReport` as mentioned in the bing-ads docs
Expand Down
3 changes: 1 addition & 2 deletions tests/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,7 @@ def expected_metadata(self):
# 'Impressions', 'Ctr', 'Clicks' shouldn't be automatic
extension_report = copy.deepcopy(default_report)
extension_report[self.REQUIRED_KEYS] = {
'AdExtensionId', 'AdExtensionPropertyValue', 'AdExtensionType', 'AdExtensionTypeId',
'Impressions', 'Ctr', 'Clicks' # Comment this line to reproduce BUG_SRCE-4578
'AdExtensionId', 'AdExtensionPropertyValue', 'AdExtensionType', 'AdExtensionTypeId'
}

age_gender_report = copy.deepcopy(default_report)
Expand Down