API key invalid or not approved by Google

三世轮回 提交于 2019-12-22 10:38:17

问题


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.

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.

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?


回答1:


In the absence of a link to check...

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.

The seqence should be:

  1. Choose project from the dropdown (or create one)
  2. Choose the services required by that project
  3. Choose collaborators if any
  4. Set up the access keys for that project. You can have more than one key per project and specify the domains the keys can be used on.
  5. Set up billing if you need it.

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



来源:https://stackoverflow.com/questions/10066045/api-key-invalid-or-not-approved-by-google

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!