Hello Das,thanks for your reply. But the exception is ClassCaseException,it does nothing to do with me, and the example is provide by adwords api.
On 10月10日, 上午5时40分, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Hi, > > 1. Copy all the include-lib.zip to includelib and lib.zip to lib under > awapi_java_lib_2.1.0. > (I believe include-lib.zip & lib.zip comes when download Java-adword- > api). > 2. Change the adword.properties. (Mean get the right credentials). you > need to place this file under home. > (for e.g my home is C:\Documents and Settings\das > 3 .Run build.xml. > 4. Then you should be able to run all the demo classes. > > Thanks, > Das > > On Oct 9, 2:14 pm, "Jan Piotrowski (AdWords API Guru)" > > <[EMAIL PROTECTED]> wrote: > > Okay. I changed the subject of the thread, perhaps then some of the > > Java people will see it and reply. > > > - Jan > > > On 9 Okt., 17:31, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > > > > Jan,thanks for your reply. > > > You are right, the library is java.But I don't know why the example > > > throw exception,the only reason I think is the problem of the library > > > of java. > > > > On 10月9日, 下午6时01分, "Jan Piotrowski (AdWords API Guru)" > > > > <[EMAIL PROTECTED]> wrote: > > > > So then it is not a problem of the Adwords API but of the library you > > > > are using. Looks like Java? > > > > > - Jan > > > > > On 9 Okt., 09:39, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > > > > > > In the class KeywordToolDemo provide by google,the JVM throw exception > > > > > at the line:KeywordToolInterface service = > > > > > (KeywordToolInterface) > > > > > user.getService(user.KEYWORDTOOL_SERVICE), > > > > > in fact the exception occor in the class BaseCredentials at the line > > > > > ((AdWordsService) obj).setServiceAccountant(new > > > > > ServiceAccountant((Stub) obj)); > > > > > because obj is type of KeywordToolServiceSoapBindingStub ,exception is > > > > > following: > > > > > > Exception in thread "main" javax.xml.rpc.ServiceException: > > > > > java.lang.ClassCastException: > > > > > com.google.api.adwords.v12.KeywordToolServiceSoapBindingStub cannot be > > > > > cast to com.google.api.adwords.lib.AdWordsService > > > > > at > > > > > com.google.api.adwords.lib.BaseCredentials.getService(BaseCredentials.java: > > > > > 177) > > > > > at examples.KeywordToolDemo.main(KeywordToolDemo.java:45) > > > > > > I'm sure there is no other exception. > > > > > looking forward your reply,thanks!- Hide quoted text - > > > - Show quoted text - --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---