API 密钥无效或未经 Google 批准 [英] API key invalid or not approved by Google

查看:56
本文介绍了API 密钥无效或未经 Google 批准的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在将我的一个网站从旧系统升级到 HTML5,但我在使用 Google Maps JavaScript API v3 时遇到了一些问题.要从他们的 API 获取数据,您必须有一个密钥 - 当然 - 但我在这里遇到了问题.

I'm currently upgrading one of my websites from the old system to HTML5 and I have some problems with the Google Maps JavaScript API v3. To fetch data from their API, you must have an key - of course - but it's here I have the problem.

问题是,即使我在他们的 Google API 控制台上添加了正确的密钥,我也会一直收到权限被拒绝",然后是一个警告窗口,提示我没有真正的API 密钥或未经 Google Maps JavaScript API v3 批准.

The problem is that even if I have an correct key that I have added on their Google APIs Console I'm getting "Permission Denied" all the time, followed by an alert window that say that I don't have an real API key or it's not approved to Google Maps JavaScript API v3.

我在 Google API 控制台的服务"中打开了Google Maps API v3"并支付了账单",但事实证明这根本没有帮助.我在他们的 API 中使用这个 URL:http://maps.googleapis.com/maps/api/js?key={MY_KEY}&sensor=false 并且我已经阅读了他们的 documentions 非常 仔细,我目前没有想法.

I have turned on "Google Maps API v3" in "Services" on Google APIs Console and payed the "bill" but that didn't help at all as proved. I'm using this URL to their API: http://maps.googleapis.com/maps/api/js?key={MY_KEY}&sensor=false and I have readed their documentions very carefully and I'm currently out of ideas.

你知道这里出了什么问题吗?我错过了什么吗?

Do you know what's wrong here? Have I missed something or what?

推荐答案

在没有链接的情况下...

In the absence of a link to check...

您可以拥有多个项目(下拉菜单,控制台左上角),并且每个键都与一个项目相关联.必须为正确的项目启用 Maps v3.

You can have more than one Project (dropdown, top left in the Console), and each key is tied to a project. Maps v3 must be enabled for the right project.

顺序应该是:

  1. 从下拉列表中选择项目(或创建一个)
  2. 选择该项目所需的服务
  3. 选择合作者(如果有)
  4. 为该项目设置访问密钥.每个项目可以有多个密钥,并指定可以使用密钥的域.
  5. 根据需要设置帐单.

左侧的菜单按逻辑顺序排列.

The menu on the left is set out in a logical order.

这篇关于API 密钥无效或未经 Google 批准的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆