- Places API (required)
- Maps JavaScript API (required)
The libraries below are optional and only needed if you use "Geocode" for the type of address suggestion results, which 99% of websites won't need:
- Geocoding API (optional)
- Geolocation API (optional)
Follow the instructions below for each API key you want to enable, and at least for the required APIs.
Inside Google Cloud Console, select your project at the top, then access the Menu > APIs & Services > Libraries.
Search for the library you want to enable, for example, "Places API" and "Maps API" which are required:
Select the desired library/API from the results list:
Enable the library/API for your project by clicking the "Enable" button.
If the "Enable" button is not displayed, but a "Manage" button is displayed instead, it means the library is already enabled for your project. In this case, proceed with enabling the other libraries/APIs, or proceed to create your API key credential.
Repeat the process to enable all desired libraries/APIs.
Create your API key credential to access the Google services
Inside Google Cloud Console, select your project at the top, then access the Menu > APIs & Services > Credentials.
You will see a list of existing API Keys and other credentials you might already have created for your project.
From the top, click the button "Create Credentials", then select the option "API key".
Add a descriptive name for your API key, select "HTTP referrers (web sites)" for "Applications restrictions", and add your domain name to the "Website restrictions".

Adding these restrictions is important to make sure only your websites can use the API key, avoiding extra charges from unauthorized use.
In the API restrictions, select "Restrict key", then open the "APIs" dropdown list and select the desired APIs:
Make sure to select at least the required APIs:
- Places API (required)
- Maps JavaScript API (required)
Check that the required APIs are selected, then save your new API key.
Now, copy your API key and add it to the Google Address Autocomplete plugin settings:
To enable the Autocompletion via the CEP field, enter the following information on the plugin settings page at WP Admin > WooCommerce > Settings > Integrations > Google Address Autocomplete:
- Plugin License Key
- Enable Brasil API Address Autocomplete (checked)
An API key is not required for this option.
You can use autocomplete via CEP alone or in conjunction with the Google Address Autocomplete feature.