Title: Google Integration
Last modified: March 19, 2021

---

# Google Integration

 *  [devonsays](https://wordpress.org/support/users/devonsays/)
 * (@devonsays)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/google-integration-3/)
 * I have been trying for more than a year now to integrate the browser key and 
   server key but it just keeps failing. Google doesn’t help me, and this plugin
   keeps telling me to contact google.
 * Is there a way I can add you as an admin to the google project or something to
   sort it out?
 * Kind regards
    Devon

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Author [Tijmen Smit](https://wordpress.org/support/users/tijmensmit/)
 * (@tijmensmit)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/google-integration-3/#post-14208129)
 * What’s the error that shows up when you click on ‘show response’ on the WPSL 
   settings page, and what shows up in the browser console ( F12 ) on the same page?
 *  Thread Starter [devonsays](https://wordpress.org/support/users/devonsays/)
 * (@devonsays)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/google-integration-3/#post-14208182)
 * This is the same questions I got the last time I asked for help from the plugin.
 * The error: Error message: The provided API key is invalid. (This is a different
   message than before as I think I deleted the project because I couldn’t get it
   to work)
 * The browser console: `[Log] JQMIGRATE: Migrate is installed, version 3.3.2 (jquery-
   migrate.min.js, line 2)
    [Error] Failed to load resource: the server responded
   with a status of 404 () (mec@2x.svg, line 0) [Error] Failed to load resource:
   the server responded with a status of 404 () (cli_icon@2x.png, line 0) [Error]
   WebSocket connection to ‘wss://public-api.wordpress.com/pinghub/wpcom/me/newest-
   note-data’ failed: Unexpected response code: 403 [Error] Google Maps JavaScript
   API error: InvalidKeyMapError [https://developers.google.com/maps/documentation/javascript/error-messages#invalid-key-map-error](https://developers.google.com/maps/documentation/javascript/error-messages#invalid-key-map-error)(
   anonymous function) (js:77:412) (anonymous function) (common.js:109:423) (anonymous
   function) (common.js:160:162) c (common.js:96:86) Global Code (AuthenticationService.
   Authenticate:1) [Error] WebSocket connection to ‘wss://public-api.wordpress.com/
   pinghub/wpcom/me/newest-note-data’ failed: Unexpected response code: 403 (x2)`
 *  Plugin Author [Tijmen Smit](https://wordpress.org/support/users/tijmensmit/)
 * (@tijmensmit)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/google-integration-3/#post-14210335)
 * ‘This is the same questions I got the last time I asked for help from the plugin.’
 * How to fix it all depends on the response from the API key test.
 * Try to create a new browser key ( sometimes Google doesn’t correctly process 
   changes, and creating a new one fixes this ) by following [this link](https://console.developers.google.com/flows/enableapi?apiid=maps_backend,geocoding_backend,directions_backend,distance_matrix_backend,elevation_backend,places_backend&keyType=CLIENT_SIDE&reusekey=true).
   Next set the [referrer](https://wpstorelocator.co/wp-content/uploads/2020/07/google-browser-key-2020.gif)
   to your domain in the domain.com/* format.
 * Also make sure to [enable billing](https://console.cloud.google.com/project/_/billing/enable?redirect=https://developers.google.com/maps/documentation/javascript/usage-and-billing?dialogOnLoad%3Dbilling-enabled)
   for your account. This is [required](https://wpstorelocator.co/google-maps-api-pricing-changes-what-you-need-to-know/)
   to use Google Maps, but it comes with $200 free credit a month, which is sufficient
   for normal usage.
 * Once you have done that wait 5 – 10 minutes, and try the ‘show response’ button
   again. Let me know if that fixed it, or what return error message is.
    -  This reply was modified 5 years, 3 months ago by [Tijmen Smit](https://wordpress.org/support/users/tijmensmit/).
 *  Thread Starter [devonsays](https://wordpress.org/support/users/devonsays/)
 * (@devonsays)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/google-integration-3/#post-14212252)
 * I reset it the browser key and I get the same error from the browser key.
 * The server key now gets this: There’s a problem with the provided server key.
 * Error message: This IP, site or mobile application is not authorized to use this
   API key. Request received from IP address 35.213.140.8, with referer: [https://maps.googleapis.com/maps/api/geocode/json?address=Manhattan%2C+NY+10036%2C+USA&key=AIzaSyB4efzEWrEHSKAWngzLSlB0m_qY02k4TcY](https://maps.googleapis.com/maps/api/geocode/json?address=Manhattan%2C+NY+10036%2C+USA&key=AIzaSyB4efzEWrEHSKAWngzLSlB0m_qY02k4TcY).
 * Make sure the IP address mentioned in the error matches with the IP set as the
   referrer for the server API key in the Google API Console.
 * I checked with my host and I am using the correct IP.
 *  Plugin Author [Tijmen Smit](https://wordpress.org/support/users/tijmensmit/)
 * (@tijmensmit)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/google-integration-3/#post-14212876)
 * Are you using any other Google Maps plugins? If you open the source code on the
   WPSL settings page and search for ‘maps.google.com’. How many hits does it show?
   Does it show one where the value behind key= matches with the browser key that
   you provided?
 * The server key issue can be solved by setting the IP from the error as ( 35.213.140.8)
   as the referrer for the [server key](https://wpstorelocator.co/wp-content/uploads/2020/07/google-server-key-ip-2020.gif)
   referrer.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Google Integration’ is closed to new replies.

 * ![](https://ps.w.org/wp-store-locator/assets/icon-256x256.jpg?rev=1007784)
 * [WP Store Locator](https://wordpress.org/plugins/wp-store-locator/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-store-locator/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-store-locator/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-store-locator/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-store-locator/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-store-locator/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [Tijmen Smit](https://wordpress.org/support/users/tijmensmit/)
 * Last activity: [5 years, 3 months ago](https://wordpress.org/support/topic/google-integration-3/#post-14212876)
 * Status: not resolved