Skip to content
All Guide to One Page

Google Shopping Merchant XML Feed

Set up the Google Shopping XML feed, activate your licence, connect Merchant Center, map categories, check GTINs, schedule updates and troubleshoot feed errors.

WooCommerce 6.0+ · WordPress 6.0+ · PHP 7.4 – 8.3

1. Overview and guide

What Google Shopping XML feed does for WooCommerce, what you need before you start and all step-by-step guides at one point.

The OBS Google Shopping XML creates from WooCommerce an XML feed in the format it reads Google Merchant Center. Shopping and Performance Max campaigns and free Google product listings are powered by this. The plugin only reads product data and does not touch checkout or orders.

Who's it for?#

For e-shops in WordPress and WooCommerce who want their products on Google Shopping with correct VAT prices, variants, images and Google categories, without manual exports.

What you need#

  • Google Merchant Center account with verified domain, business data and shipping and return policies.
  • WordPress and WooCommerce with PHP 8.1 or later.
  • The plugin ZIP and License key from your OBS account.
  • Ideal access to Cron server (cPanel, Plesk or SSH) for constant renewal.
Google Shopping XML feed configuration page for WooCommerce with Overview tabs, Required Setup and Advanced
The "WooCommerce" page → "OBS Google Shopping XML" with configuration tabs and feed production actions.

Guides in turn#

  1. Installation and activation
  2. Import license
  3. Connect to Google Merchant Center
  4. Plugin Settings
  5. Feed URL and automatic renewal (cron)
  6. Google Categories Match
  7. Brand, GTIN/EAN, MPN, color and size
  8. Test export and feed control
  9. Filters and excluding products
  10. Errors and Diagnostics at Merchant Center
  11. Large catalogues, memory and export status
  12. Filters for developers
  13. Common problems and solutions

The installation and initial customization makes them free OBS. To set the Merchant Center account and the bells there is a separate service Google Ads. See also the product page Google Shopping XML Feed for WooCommerce.

Article: Overview and guide →

2. Installation and activation

Download the ZIP from the OBS account, upload it to WordPress and activate the Google Shopping XML OBS in a few steps.

Installation steps#

  1. Login to your obstechnologies.gr account and open the section Downloads.
  2. The WooCommerce Google Shopping Merchant XML Feed press Download v... for the last edition. Keep the file as ZIP, without decompression.
  3. In WordPress open Plugins → Add Add Add Add (page opens with title Add Plugins) and press Transhipment Plugin.
  4. Press Select File, select ZIP and press Install Now.
    The WordPress 'Add Plugins' page with the ZIP file selected and the 'Register Now' button
    Select ZIP and press "Register Now".
  5. Press Enable Plugin. On the list you will see the OBS Google Shopping XML.
  6. Open WooCommerce → OBS Google Shopping XML. On the same page you reach the link Settings under the name of the plugin, next to Documentation.
    OBS Google Shopping XML line in the plugin list with the "Settings" link highlighted
    The link "Settings" under the plugin name on the list "Additional".

What about the activation#

  • An hourly work is planned at WooCommerce (Action Scheduler) that re-creates the feed based on regulation Upgrade frequency (Update Frequency).
  • Synchronising folder wp-content/uploads/obs-xml-export/, where the file is written google_shopping.xml. The server must have the right to register in uploads.
  • The field is added to the processing page of each product group Select Google Shoppping Category List and on the menu Settings the page OBS Google XML Category Mapping.

Upgrade#

Keep backup of files and base. Upload the new ZIP the same way and select Replace current with downloaded. Categories settings and mappings remain, because they are stored on the base. With active permission, new versions are also shown as a regular update in Plugins.

If you have any more OBS XML feeds (Skroutz, BestPrice, Facebook, Glami), they all use the same export engine. Keep everything in the latest version, so that no older engine is loaded than any of them.

Next step: import of a licence.

Article: Installation and activation →

3. Import license

Where License key enters OBS Google Shopping XML, how domain is activated, how updates come and how you change domain.

The license connects the plugin to its domain e-shop you and activates your automatic updates. Feed is also produced without active permission, but you will not receive corrections.

Enable#

  1. In your obstechnologies.gr account open Licences and press Copy next to the product key.
  2. In WordPress open WooCommerce → OBS Google Shopping XML.
  3. At the top the box appears Activate OBS Google Shopping XML for Update.
  4. Paste key in field Enter Validation Key and press Activate. The button says Validating... As far as the check is concerned.
    The "Activate OBS Google Shopping XML for Update" box with the key field and the "Activate" button
    Paste the key in the field and press "Activate".
  5. You'll see a message from the press. The license was activated for ... with your domain. Renew the page: with active permission the box no longer appears.

Messages you may see#

  • The license has not been found or is not active. The key has a wrong character or gap, or belongs to another product. Copy it again with the button Copy.
  • You've reached the trigger limit. The license is already active in another domain. Unlock the old one from your account.

Change domain#

  1. Open in your account Licences and find the product.
  2. The Activated domains press Change domain next to the old one, write the new one and press Save. Narin Release Just release the position.
  3. On the new site, re-enable from the plugin page.

Domain is recorded without www., so the addition or removal of www does not need new activation. The license control is done by your server to obstechnologies.gr. If the server blocks outgoing connections, the configuration page may be delayed and the frame reappears. Licence help.

Article: Enter your licence key →

4. Connect to Google Merchant Center

What you need from Google Merchant Center and how you declare XML feed URL as a source of products with planned download.

The plugin does not need Google key API. The connection is made to public URL XML, which you report to Merchant Center as a source of products from a file.

What the account should have#

  • His verified and claimed domain e-shop.
  • Business details, shipping policy (costs and times) and return policy.
  • Pages of terms, returns and communication on the site. Without them Google often suspends accounts for misleading presentation, no matter what the feed.

Statement of feed#

  1. Create a complete feed first: WooCommerce → OBS Google Shopping XML → Generate Feed.
  2. In Tab Overview, card Feed URL, press Copy URL. File is located in /wp-content/uploads/obs-xml-export/google_shopping.xml of your site.
    The "Feed URL" card with the file URL and the "Copy URL" and "Open" buttons
    The ‘Feed URL’ card: ‘Copy URL’ for copying, ‘Open’ to view the file.
  3. At Merchant Center add new source of products from file and select link (URL) instead of download.
  4. Paste the Feed URL and place your country of sale Greece and language Greek.
  5. Schedule the feed fetch at least once a day, after the feed has been refreshed.
  6. Ask for immediate download and, after processing, open the Diagnostics.

Merchant Center menu names change frequently. If you do not find the point, OBS makes the connection to the free setup, as long as you give it user access to the account, not your passwords.

URL must be opened from outside without code. Basic auth, maintenance mode or firewall/CDN rule prevent Google from downloading it. Errors and Diagnostics.

Article: Login with Google Merchant Center →

5. Plugin Settings

All fields of OBS Google Shopping XML per tab: Required Setup, Availability, Filters, Overrides and Advanced, with what each does.

Page WooCommerce → OBS Google Shopping XML Each configuration tab has its own button Save. In Greek admin the fields of the tabs Required Setup and Filters appear in Greek, while the names of the tabs Advanced and Availability English is left. We give the Greek label first and, in parenthesis, the English where it differs.

Overview#

Cards XML Feed Export (state and time of last export), Feed URL (card writes) Use this URL in your Skroutz / BestPrice merchant panel., common text of all feeds), Actions (Generate feed now, Quick test export), Scheduling and PHP Memory Limit.

The Overview tab with XML Feed Export, Feed URL, Actions and Scheduling cards
OBS Google Shopping XML's "Overview" tab.

Required Setup#

  • Upgrade frequency (Update Frequency): Hourly, Twice a Day, Daily (default).
  • Status (Mode): Massive (Bulk, default), Cron, Semesters (Chunk). After storage with Cron or Semesters and renewal of the page appears the Default Page Size (default 500).
  • Colour properties (Color Attributes) and Size Properties (Size Attributes): the properties written in g:color and g:size.
  • Default Manufacturer (Default Brand) and Manufacturer Properties (Brand Attribute): source of g:brand.
  • Product description (Product Description): Brief description (default) or Full description.
  • Observance of products outside of stock (Skip Out-of-stock Products) and Receipt of product order (Skip Backordered Products).
  • Product Name Author (Product Name Composer): drag items to build the title (product name, variation attributes and the | and # separators).
The ‘Required Setup’ tab with the frequency, status, color, size, brand and product name author
The "Required Setup" tab. Most fields appear in Greek, e.g. "Frequent upgrade" and "Situation".

Availability#

In Stock / Out Of Stock / Backorder Taoxnomy (as it is written on the plugin) and Default ... availability (Default In-Stock / Out-of-Stock / Backorder Availability). At Google feed availability is always written in stock or out of stock· products in backorder count as available.

Filters (Filters)#

Includes category (Include Categories) and Exception of categories (Exclude Categories). The Includes manufacturer (Include Brands) and Exception of manufacturer (Exclude Brands) only appear when they are set Manufacturer Properties.

Overrides#

Fields Custom META field for ... (Custom Meta field for) for Brand, Barcode, MPN, EAN, Availability and Weight, Custom Meta field for Product ID (stays English) and Meta Product Description (in English) Skip product meta, the wrong translation of the plugin). For Barcode, MPN and EAN the default is _sku.

Advanced#

Test Export Product Limit (default 10), Test Export SKU Filter and, under the title Bulk Streaming, Category Export Mode (google_product_category or product_type). At the end there is a list of available filters for developers.

The "Advanced" tab with Test Export, Category Export Mode and the Available Filters list
The "Advanced" tab with the "Category Export Mode" in "Bulk Streaming".

Analytically: categories, fields, filters.

Article: Plugin settings →

6. Feed URL and automatic renewal (cron)

Where Google Shopping feed is located, when it is renewed on its own, and how you add server cron to cPanel, Plesk or SSH.

Feed URL#

After first export, the card Feed URL tab Overview shows the address with buttons Copy URL and Open. The file is the /wp-content/uploads/obs-xml-export/google_shopping.xml. The card help text states Skroutz, because it is common in all OBS feeds; here the URL is stated at Merchant Center.

Automatically refresh without server cron#

With the activation enters hourly work into WooCommerce's Action Scheduler. Depending on the Upgrade frequency (Update Frequency):

  • Mature (Hourly): every hour.
  • Twice a day. (Twice a day): at 01:00 and 13:00 UTC.
  • Daily (Daily): at 01:00 UTC (03:00 or 04:00 Greek time).

Work runs only when WP-Cron runs, i.e. when the site has visitors. On site with little movement the feed can be delayed.

Server cron (recommended)#

  1. On card Scheduling press Show server cron command and Copy.
    The "Scheduling" card with the server cron command and the "Copy" button open
    The server cron command. The route to your site will be its own.
  2. cPanel: Cron Jobs → Add New Cron Job, choose Once Per Hour and paste the command on Command.
  3. Plesk: Scheduled Tasks → Add Task → Run a command, paste the command and here. Cron style 0 * * * *.
  4. SSH: crontab -e And add the line to the end.

Server cron calls the cron.php plugin and re-create feed Every time he runsIf you do not have access, send the command to hosting provider.

Manual#

After massive price changes press Generate Feed and request a new download from Merchant Center. The permanent rule is: first update feed, after receiving from Google.

Article: Feed URL and automatic renewal (cron) →

7. Google Categories Match

How to map WooCommerce categories to Google’s category list and when to use google_product_category or product_type.

Google ranks each product in a category of its own list. The plugin has Google's list ready and writes Number code The Commission's g:google_product_category.

Mass matching#

  1. Open Settings → OBS Google XML Category Mapping. You will find the page from the link as well. Map Categories for XML Output, located at the bottom of the plugin configuration page.
  2. For each line WooCommerce Category select in column Google Category Google category. Field has search: write an English word, e.g. Shoes.
    The page "OBS Google XML Category Mapping" with the categories WooCommerce and the column "Google Category"
    The matching page: next to each WooCommerce category you choose Google category.
  3. Press Save Changes (Save Changes in Greek admin) at the end of the page.

Comparing by category#

The Products → Categories, in processing a category, there is the field Select Google Shoppping Category List. It is useful when you add a new category.

The product class edit page with the field "Select Google Shopping Category"
The field in category processing. "Shoppping" is thus written in the plugin.

How a product category is selected#

  • The plugin controls the product categories and writes the first Google numeric code it finds. If no category has Mapping, the field remains empty.
  • For variations, the categories of the parent product are used.

Category Export Mode#

In Tab Advanced Choose google_product_category (default) or product_type. With the product_type the route of the categories of your store is written (e.g. Women > Shoes) or the Google category name if there is Mapping. Prefer Mapping: Google ranks more correctly with a code.

If a category does not exactly match, choose the nearest general on the list. Check the result with Test export.

Article: Google categories matching →

8. Brand, GTIN/EAN, MPN, color and size

Where does Google Shopping feed brand get, passwords, GTIN, MPN, color, size, title and description, and how you change their source.

What is written on each product#

Google FieldWhere's it coming from?
g:idProduct ID or variant, or Custom Meta field for Product ID (stays English)
g:item_group_idIdentification of the parent product in variants
g:titleProduct Name Author (Product Name Composer)
g:descriptionBrief or full description, without HTML
g:brandBrand Field in Overrides (Custom Meta field for Brand), otherwise Manufacturer Properties (Brand Attribute), otherwise Default Manufacturer (Default Brand)
g:mpnMPN field in Overrides (Custom Meta field for MPN, default SKU)
g:color, g:sizeColour properties (Color Attributes), Size Properties (Size Attributes)
g:price, g:sale_priceValues in VAT form 43.40 EUR

Brand#

If your brands are property (e.g. Manufacturer) or taxonomy from plugin brands, select it on Manufacturer Properties (Brand Attribute). If he is in a custom field, write the meta key in his Brand field. Overrides (Custom Meta field for Brand). Default Manufacturer (Default Brand) covers all products that do not have a brand.

GTIN / EAN#

The default plugin writes g:identifier_exists no and does not export g:gtin. If your products have barcode, state the meta key in Custom META Field for EAN (Custom Meta field for EAN) and OBS activates the export setup g:gtin and the value yes in the identifier_exists via filters. So Google correctly matches your products.

Colour and size#

The selection fields show the universal properties by WooCommerce (Products → Properties). Properties set only within a product do not appear. Each variant is exported as a separate product with its own color and size.

Title#

With him Product Name Author (Product Name Compositer) add e.g. color to the title of variants. Avoid titles written in capitals only, because Google rejects them.

Caution: do not change its source g:id Google will see new products and their history will be lost.

Article: Brand, GTIN/EAN, MPN, color and size →

9. Test export and feed control

How you run Quick test export to a few SKUs, what you check in XML before giving it to Google and why it always follows full Generate.

Sample test#

  1. In Tab Advanced write to Test Export SKU Filter 3–5 SKUs, one per line: simple product, variable, offerable and out of stock product. Press Save.
    ‘Advanced’ tab with product limit and test export list SKUs
    ‘Test Export SKU Filter’ with one SKU per line.
  2. Press Test Export top right or Quick test export in tab OverviewThe extraction runs in the background (Action Scheduler) and completes in about 5 seconds, so XML can appear shortly after pressing the button.
  3. Open Feed URL with Open (no separate link is shown after Quick test export). If no SKU is found, you will see the message No products found with the specified SKUs.
    google_shopping.xml file opened in browser
    XML file opened in the browser.

Without SKUs the test shall export the first products to the Test Export Product Limit (default 10).

What you check in XML#

  • The g:price is VAT and ends in EUR.
  • The g:sale_price there is only the product on offer.
  • Variations have a common meaning g:item_group_id and their own color/size.
  • Images open with HTTPS.
  • The g:google_product_category It's a number.
  • Brand and MPN/GTIN have a value.

Important: after testing, complete feed#

The Quick test export write the sample in the same filegoogle_shopping.xml. If Google downloads it at that time, it will only see a few products. Once you finish checking, press Generate feed now and confirm that the card XML Feed Export shows new time Last successful export.

Freshness check#

Change the price of a product by checking, re-create the feed and make sure the new price is shown in XML and, after downloading, at Merchant Center.

Article: Test export and feed control →

10. Filters and excluding products

Exclude Google Shopping feed products from out of stock, categories, brands or individual products, and see what is automatically omitted.

What is automatically omitted#

  • Products that are not published, and variants with unpublished parent product.
  • Products without price or zero price.

Stock#

The Required Setup activate it Observance of products outside of stock (Skip Out-of-Stock Products) for products not in stock and Receipt of product order (Skip Backordered Products) for products in preorder. Variables only exclude variants not available.

Categories and brands#

  1. In Tab Filters (Filters) select categories in Includes category (Include Categories) to export single those fields, or in Exception of categories (Exclude Categories) to be excluded.
    The ‘Filter’ tab with the fields of inclusion and exclusion of categories and manufacturers
    The ‘Filters’ tab (in Greek ‘Filtra’).
  2. For brands set first Manufacturer Properties (Brand Attribute) in Required Setup and store. Then the results appear. Includes manufacturer (Include Brands) and Exception of manufacturer (Exclude Brands).
  3. Press Save and re-create the feed.

Individual product#

In the treatment of the product, in the context of OBS Google Shopping XML Product Visibility in the right column, check Hide from OBS Google Shopping XML (Hide from OBS Google Shopping XML) and press Update.

The OBS Product Sustainability Frames in the right column of product processing, with the checkbox "Hide from OBS Google Shopping XML"
The box "OBS Google Shopping XML Product Visibility" in the right column of the product.

With your own field#

The Overrides → Meta Product Description (Skip product meta) you write a meta key: excluding products with a value of 1 in it. Caution: when completed, replaces its control Hide from...So the can in the product is no longer counting.

Products without image#

There is no ready option in the settings. OBS adds rule with filter obs_google_shopping_xml_skip_product, so that products are not sent to Google without image. Filters for developers.

Article: Filters and product exception →

11. Errors and Diagnostics at Merchant Center

Merchant Center's most frequent messages for WooCommerce feed: Invalid price, missing GTIN, chapter in the title, 403, old prices.

After each download, Merchant Center shows in Diagnostics which products were rejected and why. Start with the issues concerning many products.

Often messages and what you do#

  • Invalid price / invalid value. Make sure you have version 1.0.5 or higher: the value is written as 43.40 EUR and sale price only when less than normal value.
  • Missing GTIN / missing IDs. Indicate the EAN field in Custom META Field for EAN (Custom Meta field for EAN) and ask OBS to activate the g:gtin. See GTIN/EAN.
  • Excessive capitalization. The titles are in capitals. Correct them at WooCommerce or request conversion through title filter.
  • Wrong charge. Mapping all categories with products. See Comparing categories.
  • Shortcodes in description (e.g. [vc_row]). The plugin removes HTML but not shortcodes. Select Brief description THE Product description or request cleaning through filter.
  • Download error 403. Firewall, WAF or CDN blocks Google. Allow access to /wp-content/uploads/obs-xml-export/.
  • Old prices or stock. Feed is not renewed or Google rarely downloads it. automatic renewal.

Account suspension warnings#

Messages such as misleading presentation or suspension of an account usually concern site policies (business information, terms, returns, shipments) rather than the format of the feed. Check these first. OBS helps through the service Google Ads.

In the support request send the message of Diagnostics, 2 product codes and the time of the last export.

Article: Errors and Diagnostics at Merchant Center →

12. Large catalogues, memory and export status

What you do when Google Shopping feed stops in the middle or comes out small: PHP memory, state of Mass, Cron or Departments and Default Page Size.

In large catalogues the extraction can be stopped before it is finished, due to memory or execution time. The symptom is a feed much smaller than usual or indication Last export may have failed on card XML Feed Export.

1. Check memory#

The card PHP Memory Limit shows the current value. Below 256M shows warning and instructions How to increase PHP memory limit: addition define('WP_MEMORY_LIMIT', '256M'); The wp-config.php or request to host provider. For very large catalogues it may take 512M.

The "PHP Memory Limit" card in the "Overview" tab with the current memory value
The "PHP Memory Limit" card.

2. Choose “Situation” (Mode)#

  • Massive (Bulk): all feed in one execution; the simplest for small and medium catalogues.
  • Sections (Chunk): the products are written in parts of Default Page Size within the same execution and they unite in the end. It reduces memory by segment.
  • Cron: each section runs as a separate work at Action Scheduler. After Generate you will see "Export has started, it will take a few minutes before it is ready." Useful when the server cuts major executions.

3. Set the section size#

Save first Status Departments or Cron and renew the page. Then it appears Default Page Size (default 500). Less value means less memory per segment.

The ‘Required Setup’ tab with the ‘Situation’ (Mode) field at the ‘Default Page Size’ and ‘Default Page Size’ value 500
With Mode "Chunk" (in Greek "Default Page Size") appears "Default Page Size".

4. Check the work#

The WooCommerce → Status → Scheduled Actions search obs_google_shopping_xml. Failed tasks indicate error. Send it to OBS along with WordPress, WooCommerce, PHP and plugin versions.

Article: Large catalogues, memory and export status →

13. Filters for developers

OBS Google Shopping XML filters for excluding products, prices, additional tags such as g:gtin and custom_label, description and identifiers.

The filters enter a child theme or your own small plugin, so that they don't get lost with updates. The Tab Advanced shows at the end ready examples.

Especially for Google feed#

  • obs_google_shopping_xml_skip_product ($skip, $product): return true to exclude a product, e.g. when it has no picture.
  • obs_google_shopping_xml_append_xml ($tags, $product, $parent): adds tags for each product. Each array element has name, value and optionally cdata_wrapper. So added g:gtin, g:custom_label_0 et al.
  • obs_google_shopping_xml_custom_product_identifierPrice of g:identifier_exists (default) no).
  • obs_google_shopping_xml_custom_product_conditionPrice of g:condition (default) New).
  • obs_google_shopping_xml_custom_group_idPrice of g:item_group_id.

Common filters of the machine#

  • obs_google_shopping_xml_custom_price, _custom_regular_price, _custom_sale_price(iii) price change.
  • obs_google_shopping_xml_custom_description: description cleaning, e.g. shortcodes removal.
  • obs_google_shopping_xml_custom_name, _custom_id, _custom_link, _custom_image, _custom_gallery, _custom_brand, _custom_color, _custom_size, _custom_mpn, _custom_ean.
  • obs_woo_export_enable_product_metabox: return false to hide the frame Product Visibility from products.

After changing to filter run Test export and then full Generate feed now. If you do not have a developer, OBS implements such adjustments upon request.

Article: Filters for developers →

14. Common problems and solutions

Solutions for the most frequent Google Shopping feed topics: few products, critical error, rejections, 403, old data, problems in admin.

Feed has few products or small size#

Reason: export discontinued (memory, time, error), filters exclude products or just ran Quick test export, writing a sample in the same file. Solution: press Generate feed now, check them out Filters (Filters) and Observance of products outside of stock (Skip Out-of-Stock Products) and see the guide large catalogues.

"A critical error occurred" at Generate#

Reason: PHP fatal error, usually from an earlier version to a younger PHP. Solution: update the plugin and all OBS feeds, check the debug.log And send the message to OBS.

Discards for value, GTIN or capitals#

See the guide Errors and Diagnostics.

Google does not download feed (403)#

Reason: firewall, WAF or CDN blocks Google, while from a browser the URL opens. Solution: allow access to the folder /wp-content/uploads/obs-xml-export/ and ask for a new download.

Old products, prices or stock remain#

Reason: the feed is not re-created or Google rarely receives it. Products deleted remain at Merchant Center until the next download. Solution: server cron and daily scheduled download. Feed URL and cron.

Shortcodes in description#

Solution: Product description (Product Description) → Brief description or cleaning through obs_google_shopping_xml_custom_description.

I can't find a category on the list.#

The list is the official Google in English. Search in English or choose the nearest general category.

The configuration page is late or the selection fields are shown empty#

Reason: license control does not reach obstechnologies.gr, or conflict of the search field (Select2) with another plugin. Solution: renew the page, update in the latest version and allow outgoing HTTPS connections. If the appearance is damaged on other admin pages, open a request to OBS.

In the support request send WordPress, WooCommerce, PHP and plugin versions, export time and 2 product codes. Do not send passwords within the message.

Article: Troubleshooting →