Openx api Advertiser statistics call [migrated]
- by Sameer
I am trying to write a jsp application which will establish the xmlrpc connection with openxapi and return the values. I am using openxapi v1
Here I get the dates through a datepicker and then convert to date format:
`String dateStr = request.getParameter("datum1");
SimpleDateFormat formater = new SimpleDateFormat("dd-MM-yyyy");
Date result1 = formater.parse(dateStr);
String dateStr2 = request.getParameter("datum2");
SimpleDateFormat formater2 = new SimpleDateFormat("dd-MM-yyyy");
Date result2 = formater2.parse(dateStr2);`
Then I call the service provided by openxapi (Advertiser Daily Statistics)
(sessionID, advertiserID, from date, to date)
Object[] objects1=(Object[])client.execute("advertiserDailyStatistics",
new Object[]{sessionId,3,result1,result2});