Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter eflash

    (@eflash)

    I would like to add since you mentioned:

    The fatal error is occurring because an operation is performed on Merchant Center ID but it has not been set up.
    

    That our Merchant Center ID actually has been set-up. I can confirm that after manually unlinking “WooCommerce” from this page: https://merchants.google.com/mc/linkedaccounts/thirdparties, and completely reinstalling the plugin, following by re-linking our Merchant Center ID through the set-up process, WooCommerce re-appears on merchants.google.com – indicating it has linked.

    Running MC Connection Status on admin.php?page=connection-test-admin-page returns:

    Request:  GET /wc/gla/mc/connection
    Status:   200
    Response: {
        "id": ANONYMIZED,
        "status": "connected"
    }

    And on that same page under MC Account Setup it shows

    ( Merchant Center account status -- ID: ANONYMIZED || set_id:1 verify:1 link:1 claim:1 )

    Then to Ads on that same page. In fact, when I press Get Customers From Google Ads it succesfully retrieves the list of our Google Ads accounts. When I then insert one of the IDs under Get Campaigns it succesfully retrieves campaigns. The response under Check Ads Connection however remains

    Request:  GET /wc/gla/ads/connection
    Status:   200
    Response: {
        "id": ANONYMIZED,
        "currency": "THB",
        "symbol": "\u0e3f",
        "status": "incomplete",
        "step": "link_merchant"
    }

    Which makes sense because you mentioned ‘Merchant Center ID has not been set-up’, hence it likely says status ‘Incomplete’ and step ‘Link_Merchant’

    I want to assure you that our Merchant Center is also linked succesfully with Google Ads via https://merchants.google.com/mc/linkedaccounts/googleads.

    It doesn’t really seem to make sense; everything indicates that Merchant Center was linked correctly but the feed isn’t set up in Merchant Center. Google Ads in your plugin keeps telling us the Merchant Center isn’t set up, but it is – meanwhile there doesn’t seem to be a connection issue because the Ads Accounts & Campaigns are succesfully retrieved.

    Hoping you could help us out with this issue as soon as possible.

    Thread Starter eflash

    (@eflash)

    Hey @ckadenge, as mentioned before, Natthapol is my colleague who is working on this case from our side together with me. I’m currently out office, hence I mentioned he will continue troubleshooting with you this week

    Thread Starter eflash

    (@eflash)

    Dear OP,

    Apologies, I forgot to mention. We indeed also reinstalled the plugin multiple times. We followed the above steps you requested and it looks like we stumble upon a fatal error when performing step 2, interesting. Very keen to know if you would know why this would be happening.

    1. Ads Connection Status
    Request:  GET /wc/gla/ads/connection
    Status:   200
    Response: {
        "id": ANONYMIZED,
        "currency": "THB",
        "symbol": "\u0e3f",
        "status": "incomplete",
        "step": "link_merchant"
    }

    2. Setup an existing account or create anew one

    Fatal error: Uncaught Error: Call to a member function getMerchantCenterId() on null
    in /home/ANONYMIZED/webapps/ANONYMIZED/wp-content/plugins/google-listings-and-ads/src/API/Google/Ads.php on line 316
    
    Call stack:
    
    Automattic\W\G\A\G\Ads::get_merchant_link()
    wp-content/plugins/google-listings-and-ads/src/API/Google/Ads.php:132
    Automattic\W\G\A\G\Ads::accept_merchant_link()
    wp-content/plugins/google-listings-and-ads/src/Ads/AccountService.php:268
    Automattic\W\G\A\AccountService::link_merchant_account()
    wp-content/plugins/google-listings-and-ads/src/Ads/AccountService.php:164
    Automattic\W\G\A\AccountService::setup_account()
    wp-content/plugins/google-listings-and-ads/src/API/Site/Controllers/Ads/AccountController.php:119
    Automattic\W\G\A\S\C\A\AccountController::Automattic\W\G\A\S\C\A\{closure}()
    wp-includes/rest-api/class-wp-rest-server.php:1230
    WP_REST_Server::respond_to_request()
    wp-includes/rest-api/class-wp-rest-server.php:1063
    WP_REST_Server::dispatch()
    wp-includes/rest-api.php:555
    rest_do_request()
    wp-content/plugins/google-listings-and-ads/src/ConnectionTest.php:1172
    Automattic\W\G\ConnectionTest::send_rest_request()
    wp-content/plugins/google-listings-and-ads/src/ConnectionTest.php:776
    Automattic\W\G\ConnectionTest::handle_actions()
    wp-content/plugins/google-listings-and-ads/src/ConnectionTest.php:71
    Automattic\W\G\ConnectionTest::Automattic\W\G\{closure}()
    wp-includes/class-wp-hook.php:324
    WP_Hook::apply_filters()
    wp-includes/class-wp-hook.php:348
    WP_Hook::do_action()
    wp-includes/plugin.php:517
    do_action()
    wp-admin/admin.php:175

    3. Ads Connection Status again

    Request:  GET /wc/gla/ads/connection
    Status:   200
    Response: {
        "id": ANONYMIZED,
        "currency": "THB",
        "symbol": "\u0e3f",
        "status": "incomplete",
        "step": "link_merchant"
    }
    • This reply was modified 1 year, 10 months ago by eflash.
    Thread Starter eflash

    (@eflash)

    Dear OP,

    You’re more than welcome! The steps taken resulted in more than questions than answers. See below.

    • We enabeld XML-RPC via our Perfmatters plugin as we thought it might be the culprit
    • We enabled REST API via our Perfmatters plugin to be sure it works
    • We removed the Google Listing & Ads ‘Manager’ in Google Ads
    • We removed the Custom Content API authentication in Google Merchant Centre (not sure why that was there, perhaps some remnant from an old connector)

    When reconfiguring the plugin (after disconnecting everything again) we received the following error upon trying to connect the Google Merchant Centre

    Unable to insert site verification: the necessary verification token could not be found on your site

    We decided to proceed deactivating all plugins except WooCommerce and Google Listings & Ads. We also switched over to the WordPress default theme.

    • Connecting to WordPress.com was succesful
    • Connecting to Google.com was succesful
    • Connecting to Google Merchant Center loading endlessly until it stopped loading and showed the connect button again, without any error message
    • After a second attempt to click on the ‘Connect’ button, it instantly showed the green tick with ‘Connected’
    • Connecting to Google Ads was unsuccesful once again. It provided the below error message
    Unable to connect your Google Ads account. Please try again later

    The Google Ads connection status showed the below

    Request:  GET /wc/gla/ads/connection
    Status:   200
    Response: {
        "id": 6001505472,
        "currency": "THB",
        "symbol": "\u0e3f",
        "status": "incomplete",
        "step": "link_merchant"
    }

    In Google Merchant Center we went to ‘Linked Accounts’ and unlinked our Google Ads account. Then we proceeded to link the accounts again. However this had no effect on the above errors.

    We once again tried -despite the errors- to manually sync all products through wp-admin, and it still provided the below error message

    Error submitting products to Google: Google Merchant Center has not been set up correctly. Please review your configuration.

    Because the errors persist despite deactivating all plugins and themes, I believe there is no plugin conflict and there is another reason to the repeated errors. As a last resort we are thinking of creating all new accounts for Ads, Analytics, Search Console, Merchant Centre, under a fresh new Google account.

    Because I will be out of the office next week my colleague @natthapoldew will continue the conversation in this thread in the next few days.

    We’re very keen to resolve this issue as soon as possible as it’s costing us many clicks from Google Shopping and we can see sales are down already. Hoping you could help us finding a solution.

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