We need to collect the total average eCPM. Consulting the API documentation, we understood that it would be the DP_ECPM column.
However, when we run the Report Query, it gives an error regarding the currency we requested: [ReportError.CURRENCY_CODE_NOT_SUPPORTED_FOR_REQUESTED_REPORT @ ; trigger:'BRL; DP_ECPM']
Removing this currency specification continues to give an error, but of: [ReportError.COLUMNS_NOT_SUPPORTED_FOR_REQUESTED_DIMENSIONS @ columns; trigger:'DP_ECPM', ReportError.COLUMN_VIEW_NOT_ALLOWED @ columns; trigger:'DP_ECPM']
report_job = {
'reportQuery': {
'dimensions': ['AD_UNIT_NAME','DATE','HOUR'],
'adUnitView': 'FLAT',
'columns': ['DP_ECPM'],
'dateRangeType': 'CUSTOM_DATE',
'startDate': start_date,
'endDate': end_date,
'statement': {'query': f"WHERE HOUR = {today_date_previous_hour.hour} AND LINE_ITEM_TYPE <> 'HOUSE'"}#,
#'reportCurrency': 'BRL'
}
}
I tested removing some of the dimensions, but the problem remained.