How to Setup Google Shopping Feed for Magento 2 Programmatically

What is Google Shopping?

Google Shopping is an e-commerce website that provides customers to search for your product. Online stores can upload their stores’ data and products’ information on Google Shopping by using Google Merchant to boost their marketing and sales performance.

Magento 2 does not allow feed generating, you need to install the GoogleShopping Feed Module to generate the feed.

Countries using Google Shopping:

  • Europe
  • Australia
  • America
  • United Arab Emirates
  • Middle East
  • South-East Asia

Google Shopping Template fields: 

Required fields

  • id
  • title
  • description
  • link
  • image_link
  • availability
  • price
  • google_product_category
  • brand
  • condition
  • shipping
  • tax
  • gtin
  • mpn
  • item_group_id

Optional fields

  • additional_image_link
  • country
  • product_type
  • identifier_exists
  • mobile_link
  • sale_price
  • sale_price_effective_date
  • cost_of_goods_sold
  • excluded_destination
  • included_destination
  • custom_label_0
  • custom_label_1
  • custom_label_2
  • custom_label_3
  • custom_label_4
  • min_handling_time
  • max_handling_time
  • tax_category

Create the Google Shopping Feed in Magento 2

Follow the following steps to create the google shopping feed in Magento 2

  • Create a product feed
  • Insert full data needed in General information
  • Choose Google shopping template: XML
  • Insert information in Google Analytic field
  • Select the conditions to export files
  • Delivery configuration

Create a product feed

  • In the Admin panel, go to Products > Catalog > Product Feed > Manage Feeds > Add New Feed.

Insert full data needed in General information

  • In the General Information section, provide information such as Name, File Name, Status, Store Views.

Choose Google shopping template: XML

  • Click on the Template tab, select the XML template and load the application template.

Insert information in Google Analytic field

  • Add the information about the campaign in the Google Analytics section.

Select the conditions to export files

  •  Set the condition in the product filter section to export the files.

Delivery configuration

  • Select the Manual or Cron Job to generate the feeds.
  • In the Delivery section, select the delivery protocol SFTP or FTP.
  • Click on the Save configuration.

If you want any kind of help please visit our Magento 2 Development Service and get a Quote.