Add/Update the Google API Key

When accessing Google Shopping ads Channel, Magento automatically checks and validates the Google API key you have added in your store configuration. If validated, we send you to the first step of onboarding: Step 1: Linking Magento and Google.

If the key is missing, invalid, or expired, you must add or update the Google API key before you can continue onboarding.

To add or update the Google API Key:

  1. Log into the Magento Admin.

  2. On the Admin sidebar, click Marketing. Then under Advertising Channels, click Google Shopping ads.

    If you need an API Key or your API Key is invalid, you will be prompted to add or update your key.

    Onboarding API Key Verification

  3. Click Sign in to log into your Magento web account. A new tab opens with Magento Accounts with the Api Portal tab open displaying the key.

    You may need to login with your Magento web account credentials. If you need to create an account, visit here and register. This account should be part of your company or business.

  4. If you are updating your API Key, locate the previous Google Shopping ads key in the list and click Delete.

  5. To create a new key, enter a description like “Google Shopping ads” and click Add New.

    Create an API Key

  6. For the new API Key, click Copy.

    Copy the API Key

  7. Return to the Magento Admin tab and click Add the key on the Google welcome screen.

    A store configuration page opens to Stores > Configuration > Services > Channels.

  8. In the Google Shopping ads section, paste the key you copied for API key.

  9. Click Save Config.

    Add the API Key

  10. On the Admin sidebar, click Marketing. Then under Advertising Channels, click Google Shopping ads. Magento verifies and validates the entered API key.

You can also enable service logs during this step. This option is disabled by default and should only be enabled when needed for troubleshooting, as continued logging will negatively impact performance.

checkContinue to Step 1