dimensions = ['AD_EXCHANGE_DATE', 'AD_EXCHANGE_COUNTRY_NAME', 'AD_EXCHANGE_PRICING_RULE_ID',
'AD_EXCHANGE_DFP_AD_UNIT', 'AD_EXCHANGE_PRICING_RULE_NAME']
columns = ['AD_EXCHANGE_AD_REQUESTS', 'AD_EXCHANGE_IMPRESSIONS', 'AD_EXCHANGE_CLICKS', 'AD_EXCHANGE_AD_ECPM', 'AD_EXCHANGE_ESTIMATED_REVENUE']
statement = {'query': "WHERE NOT AD_EXCHANGE_PRICING_RULE_NAME IN ('(No pricing rule applied)')"}
report_type = 'Ad Exchange historical'
# Create report job.
report_job = {
'reportQuery': {
'dimensions': dimensions,
'columns': columns,
'dateRangeType': 'CUSTOM_DATE',
'startDate': start_date,
'endDate': end_date
}
}
if report_type =='Ad Exchange historical':
report_job['reportQuery'].update({'timeZoneType': 'AD_EXCHANGE'})
report_job['reportQuery'].update({'adxReportCurrency': 'USD'})
When i receive the result the Metrics ['AD_EXCHANGE_AD_REQUESTS', 'AD_EXCHANGE_IMPRESSIONS', 'AD_EXCHANGE_CLICKS'] are exactly the same as in Ad Manager UI
but ['AD_EXCHANGE_AD_ECPM', 'AD_EXCHANGE_ESTIMATED_REVENUE'] shows completly different numbers.
I was making sure that the adxReportCurrency is in USD and the timeZoneType is the same.
I don't know if i am missing something or is it a known issue?