Our code does explicitly state the API version when we create the
AdWordsUser. We create AdWordsUser like the following:
Map credentials = new HashMap();
credentials.put("applicationToken", apptkn);
credentials.put("developerToken", dvltkn );
credentials.put("useragent", usragt );
credentials.put("email", email );
credentials.put("password", passwd );
credentials.put("version", "v12");
AdWordsUser myMCC = new AdWordsUser( credentials );
Furthermore this code DOES work with the compiled version 12 api
(adwords-api-1.0.1.jar). We get the classpath error when we try and
use the source (compiling it ourselves).
Line 172 of the source code of the class:
com.google.api.adwords.lib.BaseCredentials is:
((AdWordsService) obj).setServiceAccountant(new
ServiceAccountant((Stub) obj));
Which requires that the obj in question be an instance of
AdWordsService
obj in our case is an instance of:
com.google.api.adwords.v12.AccountServiceSoapBindingStub
Which I believe is NOT an instance AdWordsService (in the source
code).
However when we decompiled the AccountServiceSoapBindingStub.class
extracted from the binary source (.jar) we found that this class
implements com.google.api.adwords.v12.AccountService (i.e. is an
instance of AccountService)
Thanks
On Jul 25, 6:12 pm, AdWords API Advisor <
adwordsapiadvi...@google.com>
wrote: