ReportUtilities.DownloadClientReport throws ReportsException with empty Errors array

62 views
Skip to first unread message

Peter Kingswell

unread,
Jun 17, 2014, 10:17:05 AM6/17/14
to adwor...@googlegroups.com
Hi,

for a particular account (can supply details) a Google.Api.Ads.AdWords.Util.Reports.ReportsException is thrown and as usual it says "Report download errors occurred, see errors field for more details.".  The problem is that ReportsException.Errors is an empty array and hence not terribly useful for determining the problem.

I tried peeking around the exception's privates but couldn't see any clues.

Anyone else see this?

Cheers, Peter

Ray Tsang (AdWords API Team)

unread,
Jun 17, 2014, 1:51:02 PM6/17/14
to adwor...@googlegroups.com
Peter,

Please send me the request/response log and the application error log by using the reply to author feature.

Thanks,

Ray

Ray Tsang (AdWords API Team)

unread,
Jun 17, 2014, 3:59:43 PM6/17/14
to adwor...@googlegroups.com
Peter,

Please refer to this documentation:

You may also want to make sure gzip is disabled so that the captured text is readable.

Secondly - are you using selectors or AWQL?  Is the error consistent or intermittent?  If it's AWQL, you can also send me the AWQL itself as well.

Thanks,

Ray

Ray Tsang (AdWords API Team)

unread,
Jun 18, 2014, 11:05:15 AM6/18/14
to adwor...@googlegroups.com
Peter,

Thanks for providing the information!  HTTP 401 error is a standard HTTP error for unauthorized access.  The response payload is actually HTML - hence the error objects are empty because it isn't the same service errors that you normally get.

Please recheck the credentials.  Also - ClientLogin authorization is sunsetting soon!  You must migrate to use OAuth 2.0 authorization instead.

Cheers,

Ray

Peter Kingswell

unread,
Jun 18, 2014, 11:42:43 AM6/18/14
to Ray Tsang, adwor...@googlegroups.com
Hi Ray,

this is the only account (of hundreds) that has returned 401.  Usually we catch AdWordsCredentialsExpiredException or look for REPORT_MISMATCH_ERROR or NOT_ADS_USER_ERROR or USER_PERMISSION_DENIED.  

What does 401 actually mean, just bad credentials?  Also, the exception really shouldn't say "see errors field for more details" if that field is a zero-length array.

Regarding Client Login we're currently transitioning our customers to OAuth.

Cheers, Peter


--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 adwor...@googlegroups.com
To unsubscribe from this group, send email to
adwords-api...@googlegroups.com
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 a topic in the Google Groups "AdWords API Forum" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/adwords-api/8gjwrEtAfqs/unsubscribe.
To unsubscribe from this group and all its topics, send an email to adwords-api...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Peter Kingswell

unread,
Jun 18, 2014, 11:45:41 AM6/18/14
to Ray Tsang, adwor...@googlegroups.com
forgot to ask - how do I tell from the ReportsException object that it's a 401?

Ray Tsang (AdWords API Team)

unread,
Jun 18, 2014, 1:54:32 PM6/18/14
to adwor...@googlegroups.com, adwordsapi...@google.com
Peter,

Please check the InnerException property.  It should contain the cause, which should be an instance of the WebException class.

Thanks,

Ray

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 a topic in the Google Groups "AdWords API Forum" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/adwords-api/8gjwrEtAfqs/unsubscribe.
To unsubscribe from this group and all its topics, send an email to adwords-api+unsubscribe@googlegroups.com.

Peter Kingswell

unread,
Jun 19, 2014, 11:07:55 AM6/19/14
to Ray Tsang, adwor...@googlegroups.com
Hi Ray,

InnerException is null.

PK



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 a topic in the Google Groups "AdWords API Forum" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/adwords-api/8gjwrEtAfqs/unsubscribe.
To unsubscribe from this group and all its topics, send an email to adwords-api...@googlegroups.com.

Ray Tsang (AdWords API Team)

unread,
Jun 19, 2014, 2:06:30 PM6/19/14
to adwor...@googlegroups.com, adwordsapi...@google.com
Peter,

Shoot! Could I trouble you to open an issue in GitHub against the client library?

Thanks!

Ray

On Thursday, June 19, 2014 11:07:55 AM UTC-4, Peter Kingswell wrote:
Hi Ray,

InnerException is null.

PK

Ray Tsang (AdWords API Team)

unread,
Jun 19, 2014, 3:13:03 PM6/19/14
to adwor...@googlegroups.com, adwordsapi...@google.com
Peter,

Thanks for filing the issue! My colleague will see if there is something that can be enhanced in the library to propagate the error.

Cheers,

Ray
Reply all
Reply to author
Forward
0 new messages