Hi,
I see that you posted this same message in a new issue on the .NET client
library <https://github.com/googleads/googleads-dotnet-lib/issues/69>. The
.NET client library owners will look into this and get back to you via
comments on that issue.
Thanks,
Josh, AdWords API Team
On Wednesday, January 13, 2016 at 4:08:04 PM UTC-5, PPC Developer wrote:
>
> 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/f5b8a950-f3c7-42b2-95cf-e4c0c898a547%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.