4 messages in com.googlegroups.adwords-apiRe: Problems with Java Lib and the ge...| From | Sent On | Attachments |
|---|---|---|
| Daniel | 08 May 2007 05:28 | |
| AdWords API Advisor | 09 May 2007 14:04 | |
| Daniel | 10 May 2007 00:47 | |
| AdWords API Advisor | 11 May 2007 16:39 |
| Subject: | Re: Problems with Java Lib and the getService Method![]() |
|---|---|
| From: | AdWords API Advisor (adwo...@google.com) |
| Date: | 05/11/2007 04:39:24 PM |
| List: | com.googlegroups.adwords-api |
I just posted an updated version of this library on SourceForge.
You can download the source for the java library from http://code.google.com/p/google-api-adwords-java/ . I think also that most IDE's should give you a description of what the constructor values are.
-- Justin Mattson, AdWords API Team
On May 10, 12:47 am, Daniel <dani...@absofort.de> wrote:
Hi Justin,
unfortunatly i can't see which parameter in the constructor is for the version, for the password and so on. Isnt it possible to see some comments of the methods and/or constructors or some descriptive names of the variables when i use the java api? :-) But thanks for fixing it!
Now only the problem with the "No Campaign with this ID was found" Message is open .. :-/
Daniel
On 9 Mai, 23:04, AdWords API Advisor <adwo...@google.com> wrote:
Daniel,
I believe the issue is that I forgot to change the default version that the library uses. The library defaults to using v9. I'll put out a new version that changes this. In the meantime though, you can override the default setting by uncommenting the version line in adwords.properties and put "version=v10" on this line. If you are not using the configuration file, there is an AdWordsUser constructor that takes the version as an argument.
--Justin Mattson, AdWords API Team
On May 8, 5:29 am, Daniel <dani...@absofort.de> wrote:
Hello,
i try to upgrade my application to the new V10 API with the Java Lib from Sourceforge. But when i try to call these line of code:
(CampaignInterface)mAdwordsUser.getService(AdWordsUser.CAMPAIGN_SERVICE);
it throws a ClassCastException cause the getService Method didn't return a "com.google.api.adwords.v9.CampaignServiceSoapBindingStub" instead of a CampaignInterface from V10 ...
Can somebody tell me what is wrong?
Thanks a lot, Daniel




