@simonbennett Thanks for sharing this.
Just a few common issues to check:
- Sometimes there is a discrepancy between IPv4 and IPv6. If you see an IP, I recommend using the IP in the error message and adding this IP to your list of restricted IPs. Check Retrieved Data to see the full error message.
- The API must be set as “Places API“, so if you don’t see this in the restrictions list, please ensure it is enabled first.
- Sometimes the data will not save correctly due to WordPress’s handling of emoticons in serialised data, so try sanitising emoticons from the retrieved data (General section). Clear the cache afterwards (Advanced | Clear Cache).
- And finally, check your billing details are correct and current.
I can assist further if this doesn’t resolve the issue for you.
Thanks for getting back to me. Everything is set correctly in the API I believe. The error message in the retrieved data tab is as follows:
{ “error_message”: “This API project is not authorized to use this API.”, “html_attributions”: [], “status”: “REQUEST_DENIED” }
@simonbennett Thanks for the details of the Retrieved Data. This sounds like a pretty generic error message.
Just confirm a few things:
- The error message usually relates to the API not being enabled in your Google Cloud Project. So, please do check it is Places API (and I will be supporting Places API (New) in the future). This must be set as the API restriction for the relevant API Key.
- Your current place is a single location and not a coverage area (SAB)?
- You have enabled the sanitization of emoticons:
Clean Retrieved Data: [X] Additional sanitization of retrieved data — emoticons are removed from text
- You’ve cleared the cache in the Advanced section once making these changes.
Ive used your plugin on a dozens sites but right now I cannot get the api to work.
all I get when I save the settings page is
Error: Your Google API Key is not valid for this request and permission is denied. Please check your Google API Key.