Hello Merchant Center experts,

Today I’d like to introduce you to a Google Ads script that can save you time and hassle when managing Merchant Center feeds . Its unique feature is the ability to update your feeds in Google Ads hourly . This appealing feature may sound trivial at first, but it offers numerous advantages, which I’ll discuss below.

Timeliness of Product Data

One of the biggest advantages of this solution is ensuring up-to-date product data in your Shopping campaigns. For example, if you have constant price changes or rapid inventory fluctuations, the hourly updates are invaluable. This helps you avoid disappointed customers and ensures that only products that are actually still available are advertised.

Effective Budget Management

By updating product feeds hourly, you can use your ad budget more efficiently. With product removals or introductions sometimes occurring within a day, you can adapt to the market faster and thus reduce unnecessary expenses.

Response to Competitive Changes

Dynamic pricing has intensified online shopping. With hourly updates, you can easily react to these developments and, for example, adjust your own prices in a controlled manner relative to those of the competition.

Now, how do you get to enjoy the benefits of this script? Here’s the solution:

1. In your Google Ads account, navigate to the “Bulk Actions” section.
2. Select “Script” and create a new script.
3. Now copy the provided code for the hourly update script and paste it here.
4. Enter the corresponding Merchant Center IDs in the script
5. Save the script and schedule it to run hourly.

And you’re done! Your Merchant Center feed will now be updated hourly using the script, and you can benefit from it.

In conclusion, the Google Ads Script for hourly updates of Merchant Center feeds is a simple but excellent way to increase your online marketing efficiency and secure a decisive competitive advantage!

Just give it a try – I’m curious about your experiences and feedback! Happy optimising!

The script

// Hourly Updates for Google Merchant Center Main Feeds
// Fill the array with merchant center ids
// Set the script to "hourly"
var MCIDS = [
  "123456", // mein-shop.de
];
 
function main() {
  MCIDS.forEach(function(MCID){
  var fetchedFeeds = fetchEnabledProductFeeds(MCID);
  Logger.log(fetchedFeeds)
  });
}
 
function fetchEnabledProductFeeds(merchantId) {
  var fetchedFeeds = [];
  var date = new Date();
  var now = Utilities.formatDate(date, AdsApp.currentAccount().getTimeZone(), "yyyy MMM dd HH:mm");
  try {
  var productFeeds = ShoppingContent.Datafeeds.list(merchantId);
  } catch(e) {
  Logger.log("### ERROR Fecthing data from merchant: '"+merchantId+"' --> "+e);
  fetchedFeeds.push([now, merchantId, , , "### ERROR Fecthing datafeed: "+e]);  
  return fetchedFeeds;
  }
  if (productFeeds.resources) {
  for (var i = 0; i  <  productFeeds.resources.length; i++) {
  try {
  var dataFeedId = productFeeds.resources[i].id;  
  var response = ShoppingContent.Datafeeds.fetchnow(merchantId, dataFeedId);
  fetchedFeeds.push([now, merchantId, productFeeds.resources[i].name, dataFeedId, "Fetch OK"]);
  } catch(e) {
  fetchedFeeds.push([now, merchantId, productFeeds.resources[i].name, dataFeedId, "### ERROR Fecthing datafeed: "+e]);
  }
  }
  }
  return fetchedFeeds;
}

Google Merchant Center hzourly update.js hosted with ❤ by GitHub

The script comes in its original version from Nils Rooijmans and was rebuilt by me into a multi-account script.

Bernhard prange webmeisterei

SEA-Experte: Bernhard Prange

Bernhard Prange ist Google Ads Freelancer und Tracking-Spezialist mit über 10 Jahren Erfahrung im Performance-Marketing. Sein Fokus liegt auf datengetriebenem Arbeiten: von Google Shopping über Conversion-Tracking bis hin zu serverseitigen Lösungen mit Matomo und BigQuery.

Als Ansprechpartner für Agenturen, E-Commerce-Unternehmen und B2B-Dienstleister verbindet er technisches Know-how mit strategischem Blick auf Marketing und Geschäftsmodelle.

Beiträge, die dich auch interessieren könnten…

  • Better data, better decisions: Data enrichment in Server-Side Tracking

    Lesen
  • Google Ads DemandGen: The Complete Practical Guide

    Lesen
  • Claude MCP: 30+ Integrations for WordPress, Google Ads & SEO

    Lesen
  • Track User Reading Behavior with Google Tag Manager

    Lesen