0

I would like to attempt a GoogleAdwords request:

  1. I have generated my Client ID and Client secret from Google API Console Credential Page ( (its type is other)
  2. I have followed this article to test my credentials
  3. I have set input information as follows in this page:

enter image description here

  1. If I click on Authorize API button enter image description here

then I get the error message Error 400: redirect_uri_mismatch

what should I do more to prevent this error message?

Kaja
  • 2,962
  • 18
  • 63
  • 99
  • What did you set in the redirect uri in the Google developer console when you created your client. It must exactly match the redirect uri you are are using in your requst. – Linda Lawton - DaImTo Jul 26 '18 at 20:41

2 Answers2

0

Try following the steps at How do I authorise an app (web or installed) without user intervention?

In particular, steps 3 and 4. They type should be web app and you need to add the oauth2 playground URL as a valid redirect URL.

pinoyyid
  • 21,499
  • 14
  • 64
  • 115
0

In your OAuth2 server, you should set redirect_uri is https://developers.google.com/oauthplayground. Because your OAuth2 server must check redirect_uri in http request and redirect_urispecified previous before execute further actions.

Hay Trần
  • 564
  • 4
  • 22