What is it?
The rules are used in feed exports and allow you to customize the values in the export to your liking. Unlike a custom variable, a rule doesn't add a variable/attribute to your data source, so your data source remains in its original state. So rules work on the principle that you take a variable from your feed, modify it, and the change will be automatically applied to that variable when that variable is used in feed exports. You can also specify for which export each rule will be applied.
You can have multiple active rules for a single variable and therefore more freedom in editing.
Where to find it?
When you go to your feed, you will see the Rules option in the left menu:
Once you select it, you can choose which variable from the feed you want to edit:
Then, of course, you can choose how you want to edit it:
We will show you the options below.
How to use it?
We showed you where to find the rules. But what are they good for? You have several ways to modify the variables and we'll give you some examples of what they're good for.
Text rule is good for:
- Editing URLs
- Editing product titles
- Removing HTML tags from the description
- Removing unnecessary parts of the product title
- Replacing text with another
Conditional Rule is good for:
- Set labels and attributes such as gender, color, and size, based on values from other variables from the data source.
Remap rule is good for:
- Convert/remap custom categories from your website to categorization for ad system/price comparator.
You can get really creative with the rules, there are plenty of options. As an example, you can change the size of the letters as follows:
The preview on the right will show you the result of the values.
You can set if the rule will be active and also set for which exports this rule will be enabled:
Once you have created the rules, you can see them in the rules overview. Here you can run or pause the rule, keep track of what exports the rule is active in, and you can also turn on a preview of how your values are changing:
Once you have created the rules and selected which exports they will be active for, they will be automatically applied to the variables used in export:
In the example, I have set the value "brand" and for this export I have applied the rule brand high, which means that the brands will be written in capital letters. Then in the export, you just need to have the brand value filled in and the values are already capitalized.
This is how it works for all rules. So if you have exports created and you create certain rules for the variables in the export, they will automatically be applied and the values in the export will be adjusted to your liking.