• Resolved amberjader

    (@amberjader)


    {
    “error_message”: “This API project is not authorized to use this API.”,
    “html_attributions”: [],
    “status”: “REQUEST_DENIED”
    }

Viewing 15 replies - 1 through 15 (of 15 total)
  • Plugin Author Design Extreme

    (@designextreme)

    @amberjader Thanks for sending the Retrieved Data. It looks likes either the IP address restriction is not set or incorrect, or more likely, the restriction for the API is incorrect. Please ensure that you have “Places API” enabled and selected in to API Key Restrictions (it’s at the bottom of this page).

    Thread Starter amberjader

    (@amberjader)

    Sorry, I am not very familiar with this.
    Thank you for your quick reply.

    Do I add a ‘key restriction’?

    Application restrictions
    An application restriction controls which websites, IP addresses or applications can use your API key. You can set one application restriction per key.

    None
    HTTP referrers (websites)
    IP addresses (web servers, cron jobs, etc.)
    Android apps
    iOS apps

    API restrictions
    API restrictions specify the enabled APIs that this key can call

    Don’t restrict key
    This key can call any API
    Restrict key
    Note: It may take up to 5 minutes for settings to take effect.

    Currently, I have no restrictions but google doesn’t really like this – they put a warning on it.

    If you could point me to the correct setting I would be most grateful.

    Plugin Author Design Extreme

    (@designextreme)

    @amberjader That’s ok, I made a visual guide if this helps:

    https://designextreme.com/wordpress/google-api/

    It seems you found the right page there. You’ll need to select “IP Addresses” and select the API Key: “Places API” from the list.

    If you’re new to Google Cloud, you’ll probably need to enable “Places API” from the Library to see it appear in the last list there.

    • This reply was modified 4 years, 1 month ago by Design Extreme. Reason: Last paragraph
    Thread Starter amberjader

    (@amberjader)

    Ah great!

    I enabled Places API
    I restricted using this as shown.

    I put IP address. Do I use my own computers IP here?

    Plugin Author Design Extreme

    (@designextreme)

    @amberjader That’s good!

    For the IP Addresses, you’ll only need the IPv4 or IPv6 IP address of the web server you’re using. That’s all. It will tell you in the plugin’s Welcome or Setup tab.

    Thread Starter amberjader

    (@amberjader)

    {
    “error_message”: “This IP, site or mobile application is not authorized to use this API key. Request received from IP address 209.182.197.181, with referee:

    URL

    “,
    “html_attributions”: [],
    “status”: “REQUEST_DENIED”
    }

    • This reply was modified 4 years, 1 month ago by amberjader.
    Plugin Author Design Extreme

    (@designextreme)

    @amberjader Please don’t copy your API Key to a public forum. Please remove the URL here. Thanks.

    Thread Starter amberjader

    (@amberjader)

    I really appreciate you getting me this far, it is wonderful.

    Maybe I need to wait for it to configure itself

    Plugin Author Design Extreme

    (@designextreme)

    @amberjader Just to confirm what you need to restrict in the API Key:

    1. Under IP Addresses, please ensure that you have: 209.182.197.181
    2. Under APIs, please ensure that you have: Places API

    Save it and check that the API Key still matches the one in the restriction page or Credentials list.

    Thread Starter amberjader

    (@amberjader)

    Oh amazing thank you so much!

    Plugin Author Design Extreme

    (@designextreme)

    @amberjader Great! I presume it’s all working ok for you now? ??

    Thread Starter amberjader

    (@amberjader)

    Yes perfect thank you

    Hi, I followed the instructions but got the following message:

    {
    “error_message”: “This API project is not authorized to use this API.”,
    “html_attributions”: [],
    “status”: “REQUEST_DENIED”
    }

    The only thing I couldn’t do was to choose API Places from the only available options shown:

    BigQuery API
    BigQuery Storage API
    Cloud Datastore API
    Cloud Debugger API
    Cloud Logging API
    Cloud Monitoring API
    Cloud SQL
    Cloud Storage
    Cloud Trace API
    Google Cloud APIs
    Google Cloud Storage JSON API
    Service Management API
    Service Usage API

    Have Google changed anything?

    Update. I found out why the Maps API was missing, I needed to activate the API. However, after activating and selecting Maps API, it still didn’t work. I think the problem is with the Google Place ID. As the business covers a whole area, it is not listed with a specific address on Google Local. Although I have been using the place ID of the town, this still didn’t help although the Pluging is operating now.

    Is there a workaround for this?

    Plugin Author Design Extreme

    (@designextreme)

    @bpsimms You need the Places API enabled. The Places API only returns data for specific locations as detailed in the plugin’s requirements.

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘Cannot connect API’ is closed to new replies.