• kevinbytebox

    (@kevinbytebox)


    Hi,

    I need some help here. I am encountering an error as below when trying to connect Google Ads account via Google for WooCommerce plugin. I have looked through topics that having similar issue and followed the way recommended such as disconnect google account and merchant ID, clear cache, deactivate security plugin, etc. However all don’t work. I have come to the last resort to ask for help here. Hope someone can enlighten or guide me how to resolve. Thanks in advance.

    https://github.com/kevinbytebox/System-for-Report.git

    There was an error getting your Google Ads accounts. Unexpected value in $auth option, got: Automattic\WooCommerce\GoogleListingsAndAds\Vendor\Google\Auth\Credentials\InsecureCredentials Object ( [token:Automattic\WooCommerce\GoogleListingsAndAds\Vendor\Google\Auth\Credentials\InsecureCredentials:private] => Array ( [access_token] => ) )

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Jonayed Hosen (woo-hc)

    (@jonayedhosen)

    Hi @kevinbytebox,

    It sounds like you’re experiencing issues with connecting your Merchant Center account. To help troubleshoot, could you please confirm that your Google account has the required permissions for this connection?

    Once you’ve checked that, here are some steps to try a fresh reconnection:

    1. Go to https://example.com/wp-admin/admin.php?page=connection-test-admin-page.
    2. Under Merchant Center, click MC Disconnect.
    3. Under Google Account, click Disconnect Google Account.
    4. Under Jetpack, click Disconnect Jetpack. (if available)

    Next, please go to your Google account’s security settings, remove all access permissions for WooCommerce, and then repeat the setup process in the plugin.

    For a full guide on connecting your Google Merchant Center account, please refer to this article.

    Let me know if this helps or if you have any questions along the way!

    Thread Starter kevinbytebox

    (@kevinbytebox)

    Hi @jonayedhosen ,

    I have tried the method you mentioned but still same error. I have also tried to deactivate most of the plugins and left only my Astra, Premium template and Woocommerce activate but still same error when trying to setup the Google for Woocommerce plugin.

    Plugin Support Reynier C. (woo-hc)

    (@reynierc)

    Hi @kevinbytebox ,

    I see you’ve tried several steps already to resolve the error with connecting your Google Ads account.

    Unexpected value in $auth option, got: Automattic\WooCommerce\GoogleListingsAndAds\Vendor\Google\Auth\Credentials\InsecureCredentials Object ( [token:Automattic\WooCommerce\GoogleListingsAndAds\Vendor\Google\Auth\Credentials\InsecureCredentials:private] => Array ( [access_token] => ) )

    Just to explain what this error message meant. It’s telling us there’s a problem retrieving your Google Ads accounts through the plugin. Specifically, the plugin expected a certain type of authentication credentials, but instead, it found an ‘InsecureCredentials’ object that didn’t contain a valid access token.

    In simpler terms, the plugin tried to prove it has permission to access your Google Ads, but the proof it offered (like a password, but for computers) wasn’t accepted. This ‘proof’ or ‘credentials’ it tried to use was incomplete or wrong as it was missing the access token, which is a special code needed to connect securely to Google’s services.

    To fix this, you need to make sure that the plugin has the correct details it needs to talk to Google Ads, and that might involve re-entering these details or checking the set-up process to make sure everything’s done correctly.

    Could you check the API credentials in your Google Cloud Console to ensure they’re correct?

    Here’s what you can do:

    • Visit the Google Cloud Console.
    • Navigate to the project associated with your WooCommerce site.
    • Check the API credentials (Client ID and Client Secret) and make sure they match the ones entered in the plugin settings.

    Please keep us posted on your progress.

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.