Monday, January 22, 2007

Using Google AdSense API with Java and AXIS1.4

Was trying to use Google AdSense API via JAVA using AXIS1.4 and found that the example code provided by Google did not directly compile. As i did not want to move back and use AXIS1.1, i modified the Google AdSense API example code given at "Google AdSense API Developer Guide" to make it work.
Here's the modification:

Change the following line in the code:
AccountService accountService =
(new AccountServiceServiceLocator()).getAccountService();
To:
AccountService_PortType accountService =
(new AccountServiceServiceLocator()).getAccountService();

1 comment:

Anonymous said...

Hi,

link from search to here , i am testing the google adsense api now, but i can't find the google adsense api jar file for java complication , can you kindly show me a available link for the api jar file or send it to me ? thank you very much ,my email : moonk.yang#gmail.com .

Contributors