Title: google_api_connection_fail &#8230;. HELP!
Last modified: August 26, 2021

---

# google_api_connection_fail …. HELP!

 *  Resolved [rossonero2021](https://wordpress.org/support/users/rossonero2021/)
 * (@rossonero2021)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/google_api_connection_fail-help/)
 * Hello gentlemen, I recently installed the Site Kit plugin through WordPress and
   when I try to configure it I get the following error and message. google_api_connection_fail
   
   My WordPress site is https:// and I’m located in Milan, Italy. Could you please
   tell me how can I solve the problem? Thank you so much
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fgoogle_api_connection_fail-help%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Support [James Osborne](https://wordpress.org/support/users/jamesosborne/)
 * (@jamesosborne)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/google_api_connection_fail-help/#post-14807947)
 * Thanks for opening a support topic. We’d be happy to investigate this for you
   and hopefully ensure you can get connected. In order to do so please share the
   following information:
    1. Your [Site Health information](https://i.imgur.com/Rtkmsba.png). You can share
       privately if preferred [using this form](https://docs.google.com/forms/d/1lhjns2K7c0Ny7ME4gxTcsnYtNUtcMr8BvFpPQi23Y1E/).
       Please include your current hosting provider where requested.
    2. Have you been able to setup Site Kit on this site or any other site on the same
       hosting platform previously?
    3. Do you see any browser [console errors](https://imgur.com/KyLAzgH.png) on the
       same screen whereby you see this notice?
 * > My WordPress site is https:// and I’m located in Milan, Italy.
 * While you’re website is https you may also wish to ensure your website is fully
   redirected for this who may somehow land on the non secure (http) version of 
   your site. From some of the checks I performed it [is possible to access](https://i.imgur.com/MVXEKL3.png)
   your non secure version. There may be a configuration option if you check your
   Site Health status (_Tools > Site Health > Status_). You’ll find more on that
   below:
    [https://make.wordpress.org/core/files/2021/02/site-health-https-supported.png](https://make.wordpress.org/core/files/2021/02/site-health-https-supported.png)
 *  Thread Starter [rossonero2021](https://wordpress.org/support/users/rossonero2021/)
 * (@rossonero2021)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/google_api_connection_fail-help/#post-14807998)
 * Thanks for your fast reply.
    I just answered providing all the Site Health Informations
   through your form. About secure/non secure, I’m sorry but I don’t see any configuration
   option through (Tools > Site Health > Status) and all the times, in the various
   sections, the URL is indicated as https:// I don’t see any browser console errors
   and I tried to set up Site Kit one time previously but without success.
 *  Plugin Support [James Osborne](https://wordpress.org/support/users/jamesosborne/)
 * (@jamesosborne)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/google_api_connection_fail-help/#post-14808147)
 * Many thanks for sharing the additional insights. As nothing stands out from the
   details provided please follow the steps below and inform me if you’re able to
   proceed:
    1. Login to your site from a Chrome browser [incognito window](https://i.imgur.com/ALzgiHp.png)
    2. Install and activate the [Health Check & Troubleshooting](https://wordpress.org/plugins/health-check/)
       plugin.
    3. Navigate to “Plugins > Health Check & Troubleshooting > Troubleshoot”.
    4. From the same screen click on the “Available Plugins” tab at the top right and
       then click on the “Enable” option next to “Site Kit by Google”
    5. Attempt to setup Site Kit once more
 * You can [exit troubleshooting](https://i.imgur.com/Z4b1bk0.jpg) mode afterwards.
 * In relation to your non secure site being accessible you can check with your 
   hosting provider to ensure all traffic is fully https, use a plugin or apply 
   a direction to your .htaccess file.
 *  Thread Starter [rossonero2021](https://wordpress.org/support/users/rossonero2021/)
 * (@rossonero2021)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/google_api_connection_fail-help/#post-14808600)
 * Hi, I’ve done all the things you specified and effectively the error has gone
   away but when I try to connect AdSense I got this phrase:
    Error: invalid ‘client_id’
   or ‘client_secret’ Isn’t Site Kit supposed to install both client IDs ??
 *  Plugin Support [James Osborne](https://wordpress.org/support/users/jamesosborne/)
 * (@jamesosborne)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/google_api_connection_fail-help/#post-14810713)
 * Many thanks for the update. If you’re encountering this during AdSense setup 
   only then this is different. I initially thought you encountered this during 
   Site Kit setup, apologies.
 * From reviewing your Site Health information once more it looks like you have 
   the following AdSense status:
    `adsense_account_status: graylisted`
 * As this can occur in various situation you’ll have to reach out to the AdSense
   team directly or check for any notices or emails in relation to your AdSense 
   account or site approval.
 * Sorry we can’t be of more assistance on this. Great site by the way!

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

The topic ‘google_api_connection_fail …. HELP!’ is closed to new replies.

 * ![](https://ps.w.org/google-site-kit/assets/icon-256x256.png?rev=3141863)
 * [Site Kit by Google - Analytics, Search Console, AdSense, Speed](https://wordpress.org/plugins/google-site-kit/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/google-site-kit/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/google-site-kit/)
 * [Active Topics](https://wordpress.org/support/plugin/google-site-kit/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/google-site-kit/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/google-site-kit/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [James Osborne](https://wordpress.org/support/users/jamesosborne/)
 * Last activity: [4 years, 9 months ago](https://wordpress.org/support/topic/google_api_connection_fail-help/#post-14810713)
 * Status: resolved