OAuth failed with invalid redirect url

1,967 views
Skip to first unread message

Hieu Nguyen

unread,
May 17, 2022, 8:23:27 AM5/17/22
to Google Ads API and AdWords API Forum
Hi all,
When I used Google OAuth 2.0 to access Google APIs, I received the error message "Error 400: redirect url mismatch."

This url has been added to the Authorized redirects URLs list, however it seems that no effect.

What should i do ?
Screen Shot 2022-05-17 at 8.07.44 AM.png

Google Ads API Forum Advisor

unread,
May 17, 2022, 11:28:23 AM5/17/22
to hieu.nguy...@unified.com, adwor...@googlegroups.com

Hi,

Thanks for reaching out to the Google Ads API Forum.

As per this OAuth 2.0 guide, kindly note that the redirect_uri value must exactly match one of the authorized redirect URIs for the OAuth 2.0 client, which you configured in your client's API Console Credentials page. If this value doesn't match an authorized URI, you will get a redirect_uri_mismatch error. 

You may check this section of above guide for the table which shows the appropriate redirect_uri parameter value for each method. That said, you may use the appropriate redirect_uri in order to resolve the redirect_uri_mismatch error.

Let us know if you have any additional questions.

Regards,

Google Logo
Yasar
Google Ads API Team
 


ref:_00D1U1174p._5004Q2atW02:ref
Reply all
Reply to author
Forward
0 new messages