Probably your API key only enable Places API (New), while the library your using uses Places API (Legacy) endpoints.
https://developers.google.com/maps/documentation/places/web-service/place-autocomplete