ReportsException Deprecated with no Clear Replacement

27 views
Skip to first unread message

apiapi

unread,
Oct 24, 2014, 12:55:45 PM10/24/14
to adwor...@googlegroups.com

I am using 18.5 of the .NET Library, using the latest ReportUtilities bits in v201409.

I have code that retries report downloads when Exceptions occur. My catch block looks like this:

catch( Exception aaa )
{
var asrep = xxx as ReportsException;
if ( null != asrep )
{
 
// check length of asrep.Errors.Length and string value of asrep.Errors[0] and log that issue
}


However, ReportsException is now marked as Deprecated, and the reference URI at https://github.com/googleads/googleads-dotnet-lib/wiki/Migrating-to-the-new-version-of-ReportUtilities does not say how to catch errors and Exceptions. How should this code be handled now?

Thanks.

Anash P. Oommen (AdWords API Team)

unread,
Oct 27, 2014, 1:18:59 PM10/27/14
to adwor...@googlegroups.com
Hi,

I'll fix the wiki guide to cover this case. You have to use AdWordsReportsException instead of ReportsException, and the code works pretty much the same way otherwise.

Cheers,
Anash P. Oommen,
AdWords API Advisor.
Reply all
Reply to author
Forward
0 new messages