Spree Google Merchant Feed
This is a Google Merchant extension for Spree Commerce, an open‑source e-commerce platform built with Ruby on Rails. It adds the ability to provide products listings to Google Merchant Center.
Installation
-
Add this extension to your Gemfile with this line:
bundle add spree_google_merchant_feed
-
Restart your server.
Usage
To use your Google Merchant endpoint as a data source in Google Merchant Center:
-
Deploy your endpoint Ensure your authentication and data endpoints are publicly accessible and return the required data format (e.g., XML, CSV, or JSON). For this extension, your endpoint will typically be:
https://yoursite.com/google_merchant/products.xml -
Copy your endpoint URL This is the URL that Google Merchant Center will fetch data from.
-
Add as a data feed in Google Merchant Center
- Go to Google Merchant Center.
- In the header, click Settings & tools.
- Select Data sources.
- Click Add product source.
- Choose Add products from a file.
- Enter your endpoint URL (e.g.,
https://yoursite.com/google_merchant/products.xml) as the feed source. - Set fetch frequency and credentials if authentication is required.
-
Test and verify After saving, Google will attempt to fetch your data. Check for errors and ensure your feed is processed correctly.
Developing
-
Create a dummy app
bundle update bundle exec rake test_app -
Add your new code
-
Run tests
bundle exec rspec
When testing your applications integration with this extension you may use it's factories. Simply add this require statement to your spec_helper:
require 'spree_google_merchant_feed/factories'Releasing a new version
bundle exec gem bump -p -t
bundle exec gem releaseFor more options please see gem-release README
Contributing
If you'd like to contribute, please take a look at the instructions for installing dependencies and crafting a good pull request.
Copyright (c) 2025 OlympusOne, released under the AGPL-3.0 or later.