Here are the detailed steps for subscribing to a Google Maps API key:
Create a Google Cloud account if you don't already have one by visiting cloud.google.com.
Log in to the Google Cloud Console using your Google account.
Click on Navigation menu (☰).
Click on APIs & Services.
Create a new project by clicking on the Create a project button in the top left-hand corner of the console.
Name your project.
Add billing info to your project. You’ll need to activate billing on your Google Cloud account for the API key to work — it’s a crucial step! (This is a monthly subscription, so you'll see the cost month by month.).
Click on APIs & Services.
Click on Create Credentials.
Click on API key.
Your key is ready!
Now the key will appear in your dashboard and you need to configure the following steps:
Click on your new API key.
Under Application restrictions, select HTTP referrers (websites).
Click on Add an item and type the subdomain of the store locator.
Important: Add a * at the beginning and at the end of your URL.
Example: stores.gnc.com/
Under API restrictions, select Restrict key.
Select the following 6 APIs and click Save:
Maps JavaScript API
Maps Static API
Places API
Geocoding API
Geolocation API
Directions API
⚠️ In case you don’t see these APIs in the list, follow the next steps:
Click on the Navigation menu.
Click on APIs & Services > Library.
Click on View all.
Select the 6 APIs you're missing and click on each of them to Enable:
Then go back to the Navigation menu.
Click on APIs & Services > Credentials.
Click on your API key.
Click on Restrict key.
Click on Select APIs.
Select the 6 APIs and click Save:
Click on Save again — and that’s done!