Closed MatiasSMd closed 8 years ago
Hi Matias,
the reporting API needs a filter and time window to be specified - see the documentation here https://developer.mediamath.com/docs/read/reports_api/Data_Retrieval, along with the example in t1-python's readme:
report.set({
'dimensions': ['campaign_id', 'strategy_name'],
'filter': {'campaign_id': 126173},
'metrics': ['impressions', 'total_spend'],
'time_rollup': 'by_day',
'start_date': '2013-01-01',
'end_date': '2013-12-31',
'order': ['date'],
})
I agree, however, that the error handling around this should be better. I'll keep this ticket open as a placeholder for more graceful error handling
Thank you @FodT
FWIW further investigation shows that the problem is a ClientError being generated and it requires only one argument (not a status) as being specified in get_status
Fixed by #59 and released in v1.1.2.
I'm getting the following stack trace when trying to download a report:
Here is the code to reproduce it:
Environment: