Re: java.lang.ClassNotFoundException: com.google.api.client.util.Clock

119 views
Skip to first unread message
Message has been deleted

The Phantom

unread,
Jun 18, 2015, 7:41:23 PM6/18/15
to adwor...@googlegroups.com


On Thursday, June 18, 2015 at 4:36:42 PM UTC-7, The Phantom wrote:
I am working with the AdWords API adwords.axis.v201502 and all looks well for compiling. 

However at runtime I am seeing java.lang.ClassNotFoundException: com.google.api.client.util.Clock when attempting to use OAuth2 to connect to the AdWords site.  The exact call is:

        Credential oAuth2Credential =
            new OfflineCredentials.Builder().forApi(Api.ADWORDS).fromFile(fullPathToAdsFile).
            build().generateCredential();

This code has been in use successfully for the last several API versions.  The problem appears to be related to v201502.

We are using what I think is the latest version of com.google.api.client.util google-api-client-util-1.2.3-alpha.jar
 
Help?

Thanks.

Umesh Dengale

unread,
Jun 19, 2015, 11:34:52 AM6/19/15
to adwor...@googlegroups.com, beama...@gmail.com
Hello,

The AdWords API Java client library v201502 uses google-api-client.jar (version 1.20.0) and does not use google-api-client-util.jar. The com.google.api.client.util.Clock class is part of google-http-client.jar (version 1.20.0). 

Please make sure google-api-client.jar and google-http-client.jar (version 1.20.0) are available in the classpath. If you are using Maven, please update the dependency in the pom.xml.

Regards,
Umesh, AdWords API Team.

Steve Beaman

unread,
Jun 19, 2015, 3:39:59 PM6/19/15
to adwor...@googlegroups.com
Yes!  That worked. 

Thank you, Umesh.
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
 
You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to adwor...@googlegroups.com
To unsubscribe from this group, send email to
adwords-api...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
---
You received this message because you are subscribed to a topic in the Google Groups "AdWords API Forum" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/adwords-api/ErzqJaaPM9g/unsubscribe.
To unsubscribe from this group and all its topics, send an email to adwords-api...@googlegroups.com.
Visit this group at http://groups.google.com/group/adwords-api.
To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/576ef7e7-4772-4ad0-be63-1309d1383c6c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

-- 
Steve Beaman

Life is short,
and the closer you get to the end,
the faster it goes.
Don't waste your time.
Reply all
Reply to author
Forward
0 new messages