Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

HTML Build an Interactive Website Google Maps Integration Adding Static Maps

January Johnson
January Johnson
23,855 Points

Google Maps Javascript API V3 API key not authorized/valid.

I have tried deleting and recreating the key, and the entire project. I have even updated billing information (which I really did not want to do. It suppose to be a simple key). My referers are set to any referer. Despite my efforts all I get is "The Google Maps API server rejected your request. This API project is not authorized to use this API. Please ensure that this API is activated in the APIs Console: Learn more: https://code.google.com/apis/console" Of course I have to put the img src address in the address bar of the browser to get that message Otherwise I have to have a <script> linking to google api and then I get this message upon refreshing, "Google has disabled use of the Maps API for this application. The provided key is not a valid Google API Key, or it is not authorized for the Google Maps Javascript API v3 on this site. If you are the owner of this application, you can learn about obtaining a valid key here: https://developers.google.com/maps/documentation/javascript/tutorial#api_key". Looking for assistance. Thanks.

Kern Tallett
Kern Tallett
10,012 Points

I have not personally come across this problem so all i can suggest is to contact google support here.

https://developers.google.com/maps/documentation/business/support#contacting_support

or try asking on stackoverflow.com which will be a site you will use more and more as you begin to code more and more.