If your website uses Google Maps to display location data, you may have encountered issues where the map shows an error or doesn’t load at all. This is often due to missing or incorrect API credentials.
Google now requires each website using Google Maps to generate its own API key and link it to a Google Cloud project. This article will walk you through the steps to generate a Google Maps API key, set up billing, and share access with your web development team.
Google has updated its policies regarding the use of Google Maps services on websites. Every website now needs its own API key, which is tied to a billing account. Don’t worry—Google Maps services remain free for most small to medium businesses, but billing details are still required to set up the API key.
Before you can generate a Google Maps API key, you’ll need a Google account. If you already have one, you can skip this step. Otherwise:
Go to Google Cloud Console and log in using your Google account credentials.
This platform allows you to manage all your cloud services, including API keys, billing, and project settings.
On the Google Cloud Console homepage, click the project dropdown in the top left and select “New Project.”
Name your project. You can use your website name or any other identifier. For example, “MyBusinessWebsite.”
Click Create to finalize the new project.
Once your project is created, you need to activate the Google Maps JavaScript API.
In the Google Cloud Console, click the APIs & Services option on the left sidebar.
Select Library from the dropdown menu.
In the search bar, type “Google Maps JavaScript API.”
Click on it and then click Enable.
This step activates the necessary functionality for Google Maps to work on your website.
Google Maps API services are linked to billing, though for most websites, usage stays within the free tier.
In the left-hand menu, click on Billing.
If you haven’t set up billing before, click on Link a Billing Account and follow the prompts to add your business information and payment details.
Confirm the billing setup and link it to your newly created project.
Now that billing is enabled and your project is set up, you can generate your API key.
In the left-hand menu, navigate to APIs & Services > Credentials.
Click Create Credentials and select API Key.
Google will generate a unique API key for you. Copy this key and save it in a secure location. You will use this key to integrate Google Maps on your website.
Finally, send the generated API key to us and we will integrate it into your website’s code, ensuring that Google Maps works seamlessly without any errors.
Setting up a Google Maps API key is a straightforward process, but it’s essential for ensuring your website's maps functionality works correctly without interruptions. By following these steps, you’ll have your project set up, billing enabled, and API key generated in no time.
If you run into any issues or need assistance, feel free to contact us at support@spindogs.com or 02920 480 720, and we will guide you through the process.