You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

AdWords API授权报错求助:请求含未注册Scope导致403错误

解决AdWords API OAuth2授权403 restricted_client错误

嘿,这问题一眼就能揪出来啦——你遇到的403错误根源是授权范围(scope)的拼写和格式错误!

先看错误提示里的关键信息:Unregistered scope (s) in the request: https://www.googleapis.com/auth/adword,这里的scope末尾少了个s,而AdWords API要求的正确授权范围是https://www.googleapis.com/auth/adwords(最后必须带s)。

再看你提供的请求链接,里面的scope还藏着另一个小问题:https://www. googleapis.com/auth/adwords,www.和googleapis.com之间多了个空格,这个空格会导致URL解析失效,同样会触发权限范围未注册的错误。

修正后的完整授权请求链接(替换你的client_id即可)

https://accounts.google.com/o/oauth2/auth?access_type=offline&client_id=***.apps.googleusercontent.com&redirect_uri=urn:ietf:wg:oauth:2.0:oob&response_type=code&scope=https://www.googleapis.com/auth/adwords

最后再确认两个细节:

  • 确保你的OAuth2客户端已经在Google Cloud Console中启用了AdWords API服务
  • 复制请求链接时别再不小心带入多余空格或者漏写字符啦

修正后重新发起请求,应该就能正常获取授权码了~

内容的提问来源于stack exchange,提问作者GT-Volk

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.28 10:11:20