4 messages in com.googlegroups.adwords-apiRe: Error when running JAVA example c...
FromSent OnAttachments
jason05 Sep 2007 01:56 
AdWords API Advisor05 Sep 2007 14:29 
jason05 Sep 2007 19:15 
nothize10 Sep 2007 00:30 
Subject:Re: Error when running JAVA example codes.
From:nothize (noth@gmail.com)
Date:09/10/2007 12:30:14 AM
List:com.googlegroups.adwords-api

I guess you are generating your own stub using axis's wsdl2java tool or solely compiling the Adwords API source code.

However, in order to use that AdWordsService interface, you would need to grab the source code and build the project using ant.

The build script uses AspectJ to inject the interface to every stub classes.

On 9月6日, 上午10�15分, jason <jaso@gmail.com> wrote:

Exception in thread "main" javax.xml.rpc.ServiceException: java.lang.ClassCastException: com.google.api.adwords.v10.CampaignServiceSoapBindingStub at com.google.api.adwords.lib.BaseCredentials.getService(BaseCredentials.java: 159) at CampaignServiceDemo.main(CampaignServiceDemo.java:42)

Upon are the entire stack trace.

Error caused from "((AdWordsService) s).setServiceAccountant(new ServiceAccountant((Stub) s));" . It shows the object "s" could not be casted to "com.google.api.adwords.lib.AdWordsService", because "com.google.api.adwords.v10.AccountServiceSoapBindingStub" hasn't implement "com.google.api.adwords.lib.AdWordsService".

Does this right?