Failed to refresh access token. See inner exception for details.

49 views
Skip to first unread message

Bob Bowles

unread,
Mar 1, 2019, 12:11:49 PM3/1/19
to AdWords API and Google Ads API Forum
Today,  we started receiving "Failed to refresh access token. See inner exception for details." on all AdWords API calls.  We did not make any code changes.  This just started out of the blue. We tried generating new credentials and a new refresh token but still get the same error.  We have been using the AdWords API for years without issue and then suddenly this problem.  Does anyone have a suggestion?

Bob Bowles

unread,
Mar 1, 2019, 12:17:17 PM3/1/19
to AdWords API and Google Ads API Forum
UPDATE: The errors are happening when a user performs a function in our admin web app that makes calls to the AdWords API.  We also have a console app that runs automated updates on a daily basis.  The console app is not having any problems.  Just the web app.  Both apps have always used the identical code and credentials.

googleadsapi...@google.com

unread,
Mar 1, 2019, 5:05:19 PM3/1/19
to AdWords API and Google Ads API Forum
Hello,

As your same set of credentials are working with console app, could you please confirm that if your web app is pointing to the right property file? Also, you can try the CURL request provided below and see if you are able to generate the access token. If your credentials are correct, you should be able to generate an access token for the below CURL request.

curl https://www.googleapis.com/oauth2/v4/token \
-d refresh_token=your-refresh_token \
-d client_id=your-client-id \
-d client_secret=your-client-secret \
-d grant_type=refresh_token

Thanks,
Milind, AdWords API Team
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
    http://googleadsdeveloper.blogspot.com/search/label/adwords_api
    https://developers.google.com/adwords/api/community/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

Was your question answered? Please rate your experience with us by taking a short survey.
If not -- reply to this email and tell us what else we can do to help.

Take Survey

Also find us on our blog and discussion group:
http://googleadsdeveloper.blogspot.com/search/label/adwords_api
https://developers.google.com/adwords/api/community/

Bob Bowles

unread,
Mar 1, 2019, 5:08:28 PM3/1/19
to googleadsapi...@google.com, AdWords API and Google Ads API Forum
I actually just found the problem 5 minutes ago and was about to update this thread.   dependentAssembly entries had been removed from the web app's web.config.  Once I added them back, everything ran fine.

--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
 
You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads 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 the Google Groups "AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to adwords-api...@googlegroups.com.
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/186v6h80000000008qi0ga000oj6guy6omjcd9p68o30c1g68qj8c1k%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


--
Bob Bowles
Reply all
Reply to author
Forward
0 new messages