Hi,
As you can read in the
note Google layers are not officially maintained anymore.
The old implementation is still there, but if it doesn't work you may need to find the bug and fix the implementation, to make it work.
The last time I checked effectively the OpenLayers implementation was not working anymore, while the the leaflet one was working, even if the API key was required.