I was implementing the adhoc reporting features and noticed I was
getting an ssl read timeout when downloading large reports.  I'm using
the perl client and apparently LWP::UserAgent sets timeout at 180
seconds by default.  In order to increase this, I added the following
line in awapi_perl_lib_2_5_5/lib/Google/Ads/Common/ReportUtils.pm:

@@ -51,6 +51,7 @@ sub download_report ($$;$;$;$) {

   my $lwp = LWP::UserAgent->new();
   $lwp->agent($client->get_user_agent());
+  $lwp->timeout(600); # set the timeout for 10 minutes

   # Set the authorization headers.
   my @headers = ();

Just wanted to put this out there in case anybody else runs into it.

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