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/8e7a47a9-305a-48e8-8fa9-fa785bbc9857%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.