Let me share one suspicion I have : This is an async call in the AdWords 
.NET Client, and when the internet connection is temporarily unavailable or 
there's some network issue, the asynch call never returns. 

thx,
d.

On Wednesday, January 13, 2016 at 8:45:56 PM UTC, PPC Developer wrote:
>
> Hi, 
>
>
> I saw another issue regarding this but the problem is still there for long 
> running server scenarios. I'm pasting the code below, where the server is 
> trying to download a report from AdWords in an infinite loop. 
>
>
> The below code is executed multiple times in a larger loop, it traverses 
> all accounts, all campaigns, etc...It works, until it eventually hangs. No 
> exceptions are thrown.
>
>
> When I break into the code in Visual Studio, it's waiting for the 
> highlighted line to execute. This call also doesn't time out. 
>
>
> Note that while it's undeterministic when it'll finally hang, but 
> eventually it does. Your help is appreciated.
>
>
> code below:
>
>
>         int downloadAttempts = 1;
>         while (true)
>         {
>             try
>             {
>
>                 ReportUtilities utilities = new ReportUtilities(user, 
> "v201506", definition);
>                 *using (Google.Api.Ads.Common.Util.Reports.ReportResponse 
> response = utilities.GetResponse())*
>                 {
>                     response.Save(saveFileName);
>                     retval = new FileStream(saveFileName,FileMode.Open);
>                 }
>                 break;
>
>             }
>             catch (Exception ex)
>             {
>                 string errMessage = ex.Message;
>                 if (ex.InnerException != null)
>                     errMessage = errMessage + ex.InnerException.Message;
>                 Console.WriteLine("Attempt:{0}. Failed to download 
> report.{1}", downloadAttempts, errMessage);
>                 downloadAttempts++;
>                 // return retval;
>                 //                    throw new 
> System.ApplicationException("Failed to download report.", ex);
>             }
>         }
>
>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
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 [email protected].
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/6da629d9-8f80-4b74-8090-bf01394512d8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to