• Resolved prokopenkoolga

    (@prokopenkoolga)


    Hi, I’m trying to connect Revies and Rating-Google my Business, but I’m getting an API key error:

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

    Can you please help me to connect?
    Thanks

    The page I need help with: [log in to see the link]

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

    (@designextreme)

    @prokopenkoolga Thanks for getting in touch and sorry for the delay.

    It sounds like the wrong API is selected from the list of API restrictions.

    1. Check that you have Places API enabled and set for the API Key restriction. If this is not listed in the APIs, this is likely the problem. Once enabled, go back to the Restrictions to select this API.
    2. Ensure that your current IP address is set (check Retrieved Data for an error relating to this) and ensure this is current and correct. You can check this under the API Restrictions.
    3. Sometimes the billing details are not set, change or expire. Ensure you have a valid and current billing account linked to your Google Cloud account. You’ll get a decent allocation so you won’t pay for your API requests by using this plugin.

    Thanks for sending through the Retrieved Data tab for details of the error. This is always the first place to check when resolving API Key or Place ID errors.

    Please let me know if this fixes the issue for you?

    Thread Starter prokopenkoolga

    (@prokopenkoolga)

    @designextreme,
    Thank you very much for a detailed explanation. Yet, as I’m not an expert, number two is a bit uncleared for me.
    “Ensure that your current IP address is set (check Retrieved Data for an error relating to this) and ensure this is current and correct. You can check this under the API Restrictions.”
    As I understood,
    I need to go to Credentials > API Key > Application restrictions > Check “IP addresses (web servers, cron jobs, etc.)” > Google my IP and Add it > In API restrictions check “Restrict key” > Select Key > Save?

    Thank you.

    Plugin Author Design Extreme

    (@designextreme)

    @prokopenkoolga Yes, that is right about the IP – just check it matches the one listed in the plugin’s Settings by the instructions. Most people get it right and Google Places API will usually tell you what it’s expecting if it is wrong.

    I actually think it is a Billing Account issue – the error is vague enough to match the reports from other people with a similar issue. Did you set this up within the Google Cloud system? Please check that this is all set correctly.

    Thread Starter prokopenkoolga

    (@prokopenkoolga)

    @designextreme

    As for number three, I don’t have a Google Cloud account. I tried to set it up, they said I will be charged monthly; “Monthly automatic payments
    You pay for this service on a regular monthly basis, via an automatic charge when your payment is due”

    I don’t want to be charged monthly.
    I did as I described above, with the API restrictions, it still does not work.

    Thank you.

    Plugin Author Design Extreme

    (@designextreme)

    @prokopenkoolga This plugin is free to use with the Google Places API. You won’t be charged monthly for using the Places API with this plugin. You’ll receive a substantial free allocation of requests – literally 100x more requests than you’ll use with the Daily updates to your reviews.

    Google introduced a requirement a few years ago to ensure that individual users are responsible for their usage and this will prevent some users from unintentionally hammering the Places API or otherwise if they have a need for this amount of data. However, your business’s reviews updated each day is far, far below this threshold. Even with my own account having dozens of websites updating each day, it doesn’t hit this limit – and I get a $0.00 invoice each month to verify the same.

    I hope this clarifies the billing requirement and allays your fears about it’s usage and lack of cost to you.

    Plugin Author Design Extreme

    (@designextreme)

    @prokopenkoolga If you need a little more certainty, I recommend setting the daily limit to 100 requests – well below the free allocation threshold.

    1. Go to: https://console.cloud.google.com/google/maps-apis/quotas
    2. Select: Places API (dropdown at the top)
    3. In the Requests section (first one), set the “Requests per day” to 100
    4. Click to save (it’s ok to reduce by more than 10%)

    That’s it, requests restricted to well-below the inclusive allowance.

    Plugin Author Design Extreme

    (@designextreme)

    @prokopenkoolga Thanks to your response here, I’ve added a new answer to the plugin’s FAQ.

    Thread Starter prokopenkoolga

    (@prokopenkoolga)

    Hi again! Sorry to bother you with the same question again. However, I did billing as you said and I still get the same error. Also, I don’t have address for my business, what do I do then?
    Thank you!
    Sorry again for bringing it back.
    Regards,
    Olga.P

    Plugin Author Design Extreme

    (@designextreme)

    @prokopenkoolga You don’t have an address for your business? The Places API requires a Place ID that matches a business with one physical location and not a coverage area.

    If you can find your business listed in the Place ID Finder, then the Places API will return data. Otherwise, it will not return anything.

    In the future, I may extend the plugin so it can use a different API in addition to the Places API, but for now, Google has restricted the Places API to only physical locations (i.e. with an address and not a coverage area).

    Thread Starter prokopenkoolga

    (@prokopenkoolga)

    Hello! Thank you very much for your detailed explanation. Apology for the delay, I’m working alone on my site, too many tech issues to fix.
    Anyway, could this cost the error? I don’t have a location but have an address that I added while register in WordPress while creating my website. But I moved from there and my IP is different.
    I did as you mentioned above, created a billing account but still get the same error:
    “error_message”: “This IP, site, or mobile application is not authorized to use this API key. Request received from IP address 72.52.228.234, with referer: https://maps.googleapis.com/maps/api/place/details/json?placeid=ChIJdZOLiiMR2jERxPWrUs9peIg&key=AIzaSyD4xgxOa5YiBBhCzbeSurmPg0ZoRBdDEcE&fields=id%2Cicon%2Cname%2Cformatted_address%2Cvicinity%2Crating%2Creview%2Curl%2Cuser_ratings_total&language=en”,
    “html_attributions”: [],
    “status”: “REQUEST_DENIED”

    I changed my physical location my IP changed could it be a problem?

    Here is the link:
    https://www.yourbeautygadgets.com/
    Thank you!
    Regards,
    Olga. P

    Plugin Author Design Extreme

    (@designextreme)

    @prokopenkoolga Please ensure the current IP restriction is set to: 72.52.228.234 for the API Key.

    Thread Starter prokopenkoolga

    (@prokopenkoolga)

    Thank you very much1 No more errors!

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘error_message”: “This API project is not authorized to use this API.’ is closed to new replies.