The tap discover step scans all the report that in user's account and generate a catalog. If there is a Campaign Manager report that doesn't have any metrics, Tap's discovery phase end up failing by complaining about that non-existing key.
Description of change
Safely get the key from a dictionary with a default value will fix this issue.
Manual QA steps
Create a report in Google Campaign Manager 360, remove all the metrics
Run tap-doubleclick-campaign-manager -c config.json --discover
The tap discover step scans all the report that in user's account and generate a catalog. If there is a Campaign Manager report that doesn't have any metrics, Tap's discovery phase end up failing by complaining about that non-existing key.
Description of change
Safely get the key from a dictionary with a default value will fix this issue.
Manual QA steps
tap-doubleclick-campaign-manager -c config.json --discover
Risks
None
Rollback steps