I am getting the same error and using Maven, something is mucked up with 
the poms that needs to be fixed.  I do not know which jar this class is to 
be found.  This was working with an earlier version of the API jar in my 
pom, I just updated to the latest version and now have a problem finding 
this class and cannot compile.  any ideas?

On Monday, March 25, 2013 12:19:26 AM UTC-6, Takeshi Hagikura (AdWords API 
Team) wrote:
>
> Hi,
>
> It's most likely you are missing some dependent jars.
> Are you using Maven?
> Either way, please read this quick start 
> guide<https://code.google.com/p/google-api-ads-java/wiki/QuickStart> to 
> setup the development environment.
>
> Best,
> - Takeshi
>
> On Saturday, March 23, 2013 5:59:19 AM UTC+9, F.Per wrote:
>>
>> scope is https://adwords.google.com/api/adwords btw
>>
>> Am Freitag, 22. März 2013 20:03:45 UTC+1 schrieb F.Pers:
>>>
>>> Hi 
>>>
>>> im trying to use oAuth2 with the webServerClient connection, and i get a 
>>> "java.lang.ClassNotFoundException: 
>>> com.google.api.client.util.Preconditions" when executing the following code:
>>>
>>> [code]
>>> GoogleAuthorizationCodeFlow authorizationFlow = new 
>>> GoogleAuthorizationCodeFlow.Builder(
>>>                 new NetHttpTransport(),
>>>                 new JacksonFactory(),
>>>                 CLIENT_ID,
>>>                 CLIENT_SECRET,
>>>                 Lists.newArrayList(SCOPE))
>>>         .setApprovalPrompt("force")
>>>         // Set the access type to offline so that the token can be 
>>> refreshed.
>>>         .setAccessType("offline").build();
>>> [/code]
>>>
>>> Can anybody tell me why or what code to use instead because i do have 
>>> the access to the package com.google.api.client.util. but there really is 
>>> no such class called Preconditions.
>>>
>>> greez
>>>
>>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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/groups/opt_out.


Reply via email to