Make sure your settings are properly configured:
-
Enable the right google map APIs in your google account
- Maps Static API
- Maps JavaScript API
- Places API
-
Make sure billing is enabled
-
Make sure to wait if errors keep being shown: sometimes enabling an API allows to use it immediately but Google keeps triggering errors for a while