Error msg i get now is this one below:

Exception in thread "main" java.lang.NoClassDefFoundError: 
com/google/common/base/Preconditions
at 
com.google.api.ads.common.lib.auth.OfflineCredentials$Api.<init>(OfflineCredentials.java:89)
at 
com.google.api.ads.common.lib.auth.OfflineCredentials$Api.<clinit>(OfflineCredentials.java:81)
at AdWordsApi.main(AdWordsApi.java:37)
Caused by: java.lang.ClassNotFoundException: 
com.google.common.base.Preconditions
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 3 more



On Tuesday, 21 April 2020 15:16:37 UTC+5:30, TECGCA96 TECGCA96 wrote:
>
> Hi Thanks for the quick response,
>
> Hi Thanks for the quick response.
>  
> 1. Access_token i have been getting the right way itself, which is 
> recommended by the AdwordsApi document   
> https://developers.google.com/adwords/api/docs/guides/authentication . I 
> am using the test developer token, is that an issue ?
> 2. Regarding the request which i am sending as soap , i created myself, 
> because i didn't find any relevant exmaple in the document for Report one. 
> The XML structured input i replicated all the fields from the document 
> https://developers.google.com/adwords/api/docs/guides/reporting
> 3. Regarding java client example , i have used that as well but i get 
> error out there as well:
>
> Exception in thread "main" java.lang.NoClassDefFoundError: 
> com/google/inject/Module
> at 
> com.google.api.ads.adwords.lib.utils.AdWordsInternals.<clinit>(AdWordsInternals.java:37)
> at 
> com.google.api.ads.common.lib.auth.OfflineCredentials$Api.getInternals(OfflineCredentials.java:107)
> at 
> com.google.api.ads.common.lib.auth.OfflineCredentials$Builder.defaultOptionals(OfflineCredentials.java:318)
> at 
> com.google.api.ads.common.lib.auth.OfflineCredentials$Builder.forApi(OfflineCredentials.java:312)
> at com.googleAnalatics.google.AdWordsApi.main(AdWordsApi.java:40)
> Caused by: java.lang.ClassNotFoundException: com.google.inject.Module
> at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:357)   
>
> On Monday, 20 April 2020 23:59:19 UTC+5:30, adsapiforumadvisor wrote:
>>
>> Hello,
>>
>> Thanks for reaching out! Upon taking a look at the error, it appears that 
>> your request is incomplete. Did you ensure that you were closely following 
>> the instructions mentioned in this 
>> <https://developers.google.com/adwords/api/docs/guides/call-structure#api_call_example>
>>  guide 
>> for making a basic call using cURL? Additionally, did you correctly 
>> configure your authentication token and account login into your XML? 
>>
>> If you continue to run into issues, I strongly recommend that you 
>> download and utilize one of our client libraries 
>> <https://developers.google.com/adwords/api/docs/guides/first-api-call#get_a_client_library>,
>>  
>> as they eliminate the manual construction of requests. You may also use our 
>> Reporting 
>> sample codes 
>> <https://developers.google.com/adwords/api/docs/samples/java/reporting> once 
>> you have a client library configured.
>>
>> Thanks,
>> Danica Calusin, Google Ads API Team 
>>  
>>
>> ref:_00D1U1174p._5001UZZ3XI:ref
>>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads 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 and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/19f3a4f3-42ce-45fd-ab59-484064e55e71%40googlegroups.com.

Reply via email to