Hi,
  One of my colleagues helped me with this.  You can still set the timeout, 
but its a bit hackier than with the old lib.  Here's the code i was able to 
add the the GetCampaigns example:

    AdWordsServiceClient handler = 
(AdWordsServiceClient)Proxy.getInvocationHandler(campaignService);
    ((Stub)handler.getSoapClient()).setTimeout(20*1000);

I verified that this works by setting it to 20 initially (it's in 
milliseconds) and I ended up with: java.net.SocketTimeoutException: Read 
timed out

We're investigating the best way to surface this and other similar options 
in a future release.

- Kevin Winter
AdWords API Team

On Tuesday, September 11, 2012 4:04:01 AM UTC-4, aminotsukasa wrote:
>
> Hi all
>
> Now I'm writing a program with new adwords library.
> I will use this program with slow network(3G/WLAN....)
> Because I want to set timeout second to Service class.
> But I can't find out setTimeout method.
>
> > service = adWordsServices.get(session, 
> TargetingIdeaServiceInterface.class);
> > service.setTimeout(xxx); // No such method!
>
> With old library(adwords-lib 8) I can set timeout second .
> > ((org.apache.axis.client.Stub) service).setTimeout(timeout);
>
> Does anyone know the issue?
> How many default timeout second?
>

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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

Reply via email to