Hi Ray,

Also this value: 
com.google.api.ads.common.lib.auth.OfflineCredentials.Api.values() is 
giving 

An exception occurred: java.lang.NoClassDefFoundError 

It seems like some issue while loading the classes from the jars.

Any idea what it could be and how to fix it??

On Thursday, June 19, 2014 11:54:59 PM UTC+5:30, Vikash Singh wrote:
>
> Hi Ray,
>
> Sorry to say this but there is no stack-trace. The flow is basically a 
> sequence of proprietary classes. So can't print that. 
> But the import statement is as follows:
>
> import com.google.api.ads.adwords.lib.client.AdWordsSession;
> import com.google.api.ads.common.lib.exception.OAuthException;
> import com.google.api.ads.common.lib.exception.ValidationException;
> import com.google.api.client.auth.oauth2.Credential;
> import 
> com.google.api.client.googleapis.auth.clientlogin.ClientLoginResponseException;
> import com.google.api.ads.common.lib.auth.OfflineCredentials;
> import com.google.api.ads.common.lib.auth.OfflineCredentials.Api;
>
> and i am using this jar set : 
> https://github.com/googleads/googleads-java-lib/releases/tag/1.27.0
>
>
> On Thursday, June 19, 2014 11:26:10 PM UTC+5:30, Ray Tsang (AdWords API 
> Team) wrote:
>>
>> Vikash,
>>
>> Could I trouble you to send me the full stacktrace?
>>
>> Thanks,
>>
>> Ray
>>
>> On Thursday, June 19, 2014 11:39:13 AM UTC-4, Vikash Singh wrote:
>>>
>>> This value:
>>>
>>>     com.google.api.ads.common.lib.auth.OfflineCredentials.Api.ADWORDS
>>>
>>> Is null.
>>>
>>> As In code:
>>>
>>> credential = new OfflineCredentials.Builder()
>>>                 
>>> .forApi(com.google.api.ads.common.lib.auth.OfflineCredentials.Api.ADWORDS)
>>>                 .withClientSecrets(clientAppId, clientAppSecret)
>>>                 .withRefreshToken(refreshToken)
>>>                 .build()
>>>                 .generateCredential();
>>>
>>>
>>> <https://lh5.googleusercontent.com/-oH5Grtem_X8/U6MDWID9fyI/AAAAAAAAAOI/GJHsDlTBbo4/s1600/NPE+oauth+api.png>
>>> Any idea why this is happening?
>>>
>>> Any help appreciated.
>>>
>>> Thanks,
>>> Vikash
>>>
>>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@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 the Google Groups 
"AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to