I am product-manager for a distributed OpenX-Setup (4 Delivery-, 1 DB-Server). I am trying to write my own python scripts, that generate reports.
When I connect to the database and query for the data from one day, the results differ slightly from the statistics-view from the adminfrontend. The revenue i.e. differs by .5%.
The SQL-Query:
SELECT data_summary_ad_hourly_id, date_time, ad_id, zone_id, requests, impressions,
clicks, conversions, total_revenue
FROM ox_data_summary_ad_hourly
WHERE date(date_time) = '2012-11-21'
ORDER BY ad_id, zone_id DESC
Does anybody have an idea?