Hi Daniel,
try to initialize your AdWords-user with an explicit String that indicates the API-version: e.g. public static final String API_VERSION = "v13"; adWordsUser = new AdWordsUser( adWordsAccountSettings.getRootLogin(), adWordsAccountSettings.getPassword(), adWordsAccountSettings.getClientLogin(), adWordsAccountSettings.getUserAgent(), adWordsAccountSettings.getDeveloperToken(), adWordsAccountSettings.getApplicationToken(), API_VERSION, null); If you don't do that, the AdWordsUser gets initialized with 'v12' by default, which leads to your ClassCastExceptions... Hope this helps... Tino -- Refined Labs GmbH Landwehrstraße 17 80336 München Tel +49 89 1392879-0 [EMAIL PROTECTED] http://www.refinedlabs.com Sitz: München AG München HRB 166589 Geschäftsführer: Thomas Bindl, Stephan Seitz -----Ursprüngliche Nachricht----- Von: adwords-api@googlegroups.com [mailto:[EMAIL PROTECTED] Im Auftrag von Daniel Gesendet: Freitag, 14. November 2008 07:22 An: AdWords API Forum Betreff: AdWords API Java Class Cast Exception in new V13 Hi everybody! Today i want to switch from V12 to V13 but it seems there is a little Bug in the Java Lib with the AdwordsUser Object. So when i try to get a ReportService i use this method: private ReportServiceSoapBindingStub getReportService() { try { return (ReportServiceSoapBindingStub) mAdwordsUser.getService (AdWordsUser.REPORT_SERVICE); } catch (ServiceException e) { e.printStackTrace(); } return null; } But after i download the new V13 library all i get is this ClassCastException: java.lang.ClassCastException: com.google.api.adwords.v12.ReportServiceSoapBindingStub cannot be cast to com.google.api.adwords.v13.ReportServiceSoapBindingStub In fact - all of my imports are V13 so i think that the AdwordsUser Object always return the ReportService in V12. Would be nice if somebody can check and fix this ... :) Regards, Daniel --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "AdWords API Forum" group. To post to this group, send email to adwords-api@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/adwords-api?hl=en -~----------~----~----~----~------~----~------~--~---