Create an API key
1
Open Google Cloud
In the Google Cloud Console, choose your project and enable the Maps JavaScript API.
2
Create a key
Create an API key under Credentials. Restrict it to the Maps JavaScript API and to your site’s domain.
Turn on Google Maps for the countries map on the accounts dashboard, with an API key you create in Google Cloud.
Open Google Cloud
Create a key