Get "Unauthorized" error when call AdWords API

54 views
Skip to first unread message

jh...@appannie.com

unread,
Mar 24, 2016, 3:51:39 AM3/24/16
to AdWords API Forum
Hi,

We are trying to access a user's AdWords report, the user has allowed us to access his AdSense & AdWords and we have the refresh token, we call the "OAuth2.refreshAccessToken" to get access token, it is OK. Then we use the access token to call AdWords API (e.g. https://adwords.google.com/api/adwords/reportdownload/v201509), it failed with error:
<HTML>
<HEAD><TITLE>Unauthorized</TITLE></HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
<H1>Unauthorized</H1>
<H2>Error 401</H2>
</BODY>
</HTML>

Our code works well for other users' refresh token, but for this user it always failed with above error, how it happens and how can we fix it?

Thanks,

Anthony Madrigal

unread,
Mar 24, 2016, 10:02:28 AM3/24/16
to AdWords API Forum
Hi,

Is there any more information you could provide me with such as SOAP logs? If so, please send it to me through Reply privately to author.

Thanks,
Anthony
AdWords API Team
Reply all
Reply to author
Forward
0 new messages