Sorry about that!
Google Merchant Center’s feed rules are a data transformation tool you can use to insert and modify your product data in order to match Google’s product data specification requirements. Once created, the feed rules will automatically be applied to the feed each time it’s uploaded. Rules are applied directly after a feed upload – and before diagnostics evaluation. They are available in the ‘Products > Feeds’ section of your Google Merchant Center account.
It is important to set your feed rules correctly and to do so, a process with multiple stages should be followed. To make clear how you can actually create a rule, let’s set a hypothetical scenario: your company is having its first sale this summer, so the discounted offers have to be separated into a new Shopping campaign in order to maximise the visibility of the items on sale. To achieve that, you may want to use a ‘Custom Label’ attribute and mark your offers as ‘Summer Sale’. One way to do that is by applying a feed rule for every product with a ‘Sale Price’.
Upload your feed and navigate to the ‘Feeds’ page under ‘Products’. Select the feed you want to impact with feed rules and click the ‘Rules’ tab at the top of the page. If you have more than one country of sale and target language connected to this feed, then be sure to select only the country and language that you would like to apply the rule to.
Click ‘Create Rule’ and choose the attribute you would like to change with feed rules. In this example, we want to change the attribute ‘Custom Label 0’.
Here, we want to apply the custom label only for offers where there is a sale price; so, click the ‘Condition’ bar at the top of the page, select ‘Sale Price’ and add a condition that has a value.
Click ‘Set to’ and add the static value ‘Summer Sale’. Click ‘Save’ as draft, and now the changes made to your rules are in draft mode.
Test your changes in order to check your draft rules before they are applied to your product data. If you are happy with the test, then click ‘Apply to save’ and all new or updated rules will be implemented. If you want to remove the draft rules, then click ‘Discard’.
Given that rules are applied to individual feeds, you need to set up the rules for each feed when you have multiple feeds. Also, if you have more than one country of sale and target language connected to this feed, you have to select only the country and language that you would like to apply the rule to.
By default, the new rule will always be applied. Therefore, you can use conditions to set the scenarios where your rules should be applied.
Make sure to test your changes before applying and publishing them to avoid any accidental processing errors. Google Merchant Center will provide you with a preview of the rule’s impact on your product feed, so it is recommended to review this before applying any changes.
Feed rules can be applied to ‘Feeds’ submitted via the API, but they cannot be set up via the API.
To fix potential issues with the feed rules, it is better to make the changes at the source where possible. For example, if prices aren't updated quickly - meaning that you have to rely on supplemental feeds - then it might be more effective to look into APIs.
You can discover more about the feed rules in the Google Merchant Center Help