Hello Das,

 That does not sound like an error that would occur due to an invalid
developer token, but yes, in general you should try to make sure that
you are using the appropriate credentials. I'd also recommend checking
your ~/adwords.properties file to make sure you're not accidentally
requesting v11 or the API or using the Sandbox URL in there.

 Also, you mention that you built the source code yourself after
downloading it. Are you referring to the libraries or the sample code?
If you built your own copy of the libraries JAR, could you try using
the pre-compiled version that comes with the client library instead?

 Basically, could you try following the steps in the first paragraph
of "How do I start?" in the README?

  http://google-api-adwords-java.googlecode.com/svn/trunk/README

Cheers,
-Jeff Posnick, AdWords API Team


On Sep 23, 8:38 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
wrote:
> Do I need to use proper developer token to avoid this error?
>
> Thanks,
>
> On Sep 23, 1:47 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
> wrote:
>
> > Hi,
>
> > I'm new user to Adword API, I just ran AccountServiceDemo, and got
> > following error. Can anybody please suggest?
>
> > Exception in thread "main" javax.xml.rpc.ServiceException:
> > java.lang.ClassCastException:
> > com.google.api.adwords.v12.AccountServiceSoapBindingStub cannot be
> > cast to com.google.api.adwords.lib.AdWordsService
> >         at
> > com.google.api.adwords.lib.BaseCredentials.getService(BaseCredentials.java:
> > 177)
> >         at AccountServiceDemo.main(AccountServiceDemo.java:35)
>
> > Thanks,
> > Das
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to