php code for criteo custom report: create URL from user API key and dates / parse csv into arrays  / make pCharts