请求GoogleAdwords API时出错400 redirect_uri_mismatch

问题描述 投票:0回答:2

我想尝试GoogleAdwords请求:

  1. 我已从Google API控制台凭据页面生成我的客户端ID和客户端密码((其类型为其他)
  2. 我跟着this文章来测试我的凭据
  3. 我在this page中设置了如下输入信息:

enter image description here

  1. 如果我点击授权API按钮enter image description here

然后我收到错误消息错误400:redirect_uri_mismatch

我该怎么做才能防止出现此错误消息?

google-oauth google-oauth2
2个回答
0
投票

请尝试按照How do I authorise an app (web or installed) without user intervention?中的步骤操作

特别是,步骤3和4.他们键入的应该是web应用程序,您需要将oauth2 playground URL添加为有效的重定向URL。


0
投票

在您的OAuth2服务器中,您应该设置redirect_urihttps://developers.google.com/oauthplayground。因为您的OAuth2服务器必须在执行进一步操作之前检查http请求中的redirect_uri和之前指定的qazxswpo。

© www.soinside.com 2019 - 2024. All rights reserved.