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
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.