Our expert Magento 2 developers have helped some of our valued customers to set up Google shopping feed for their Magento 2 websites so they can sell their products through Google ads effectively
We have prepared this guide which will help you to set up Magento 2 google shopping feed
Magento doesn’t have an easy way to export products in a format that can be used as feed, so to setup and use google shopping feed for your Magento 2 webshop, this extension Simple Google Shopping will be required. Download the extension and install it by following below steps.
You will need to login to your server using SSH access to run commands from terminal. Go to your Magento root directory and upload the extensions files and run below command:
php bin/magento setup:upgrade
And after that run another command to deploy the theme files.
php bin/magento setup:static-content:deploy
This will install the extension on your site and its ready for you to start creating products feed for google shopping.
Go to Admin->Products->Simple Google Shopping and click on Create New Data Feed to start creating new feed.
While creating the feed there is very useful Toolbox provided on the right side to help you create the data feed more quickly with list of attributes, a preview and reporting for warnings and errors
Let’s start with first tab Configuration for the feed
Here you need to enter the Filename, path of file, the store for which you require feed, your site url along with title and description for the feed
The Xml patterns is included with the default syntax which generates the feed with most basic details which you can modify as per your need
Here the Toolbox will be of use where you can add, modify or remove specific attributes and set them as per various attribute variables and parameters. There are many sets of functions and use of PHP function calls provided as well for more advanced feed generation.
Next step is to choose Categories you want to include/exclude based on the Product and/or Parent categories. You can also map your categories to define the Google product category it belongs to which can be different on your store as per your need. Choose the category that best matches your store’s category
After that you can specify different filters to export products in the feed as per your need. Here you can choose Product Type, Attribute Set, Product Visibility and Advanced Filters as well.
With Advanced Filters it gives you more control over the feed to serve your custom needs for feed generation with personalized filters. For example, you want the feed to include only products with prices higher than 0 and for which SKU is compulsory.
Now that you have specified all the details for the product feed its time to setup the feed generation. Here you can define the days and hours for your data feed to be generated automatically when you require it. Make sure that the cron jobs are enabled and setup on your server for the automatic feed generate to work. Discuss with your Magento 2 Web Development Company to set up cron jobs
Also,you have option to generate your data feed manually from the configuration panel by clicking on GENERATE button and from the action dropdown of the data feeds grid as well.
You can now view the created data feeds listed according to IDs with name of the file, its path and the link to the data feed file. Your view number of products exported, the time it took and the number of errors and warnings in your data feed.
There will be status on data feeds according to the condition which are self-explanatory. Use the Action dropdown to manage the feeds.
Now that you have your feed generated you can go into your Google Merchant Centre account and upload your store and products data feed to Google by manually uploading the file or specify the direct link of feed and specify time interval to fetch feed in Google and make it available for Google Shopping ads
Please feel free to ask any questions you may have, We would be more than happy to help
Send us your project notes