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?