Content Rules

Using Content Rules in Ad Management

Sam O'Neill avatar
Written by Sam O'Neill
Updated over a week ago

Content Rules are one of our newest features in Ad Management, and they're designed to allow you to modify the content of your products before they're exported to a channel.

If you want to modify your product ad titles for a particular channel, add some extra parameters to your URLs, or advertise a one day special, Content Rules will make these changes for you without needing to change the product information in your webshop catalogue.

As a simple example, in my shop I've set up my Playstation products with the brand field entered as "SONY PLAYSTATION", but the products still have "Playstation" in the title. This leads to them being displayed on the product ad as "SONY PLAYSTATION Playstation 4".

So, to fix this I first set up the filter Brand contains "Sony Playstation" to get only the 35 products where I've doubled up on Playstation. 

Next, I hit the "Content Rules" button from the action bar, and start setting up a new rule. The rule I want here is that when the brand contains "Sony Playstation" it should be replaced with just "Sony". 

Once I've set this up, I can check in the preview at the bottom left to check that the result of this rule is what I expect it to be, and add a brief description to describe what 

The content rule here would replace the text in the brand field when generating the feed, resulting in the ad appearance being cleaned up to avoid the duplication without needing to manually alter the products in my webshop catalogue.

(In this example I've only applied one action, but you could use a combination of the available actions to get the result you need)

After creation, a the new content rule will be visible on the rules tab in Ad Management.


Clicking on the rule will apply the filters for the rule and show you only products that are currently being affected by the rule. Hovering on the info icon in the bottom right will also show the full conditions and rules being applied.


Important note: The starting conditions for your content rule will always be the filters you set up beforehand, and you won't actually be able to use the Content Rule action unless you've applied a filter to your products first.


The following actions can be applied with Content Rules

Concatenate: 

Add some text to be concatenated onto the field content.

Example:
Field content: "Playstation Bluetooth Keyboard"
Rule: Concatenate " - Free Delivery"
Result: "Playstation Bluetooth Keyboard - Free Delivery"

Currently concatenate can only be used to add to the end of the field, rather than the start, and the string you enter will be added immediately to the end, so remember to add a space at the start if you need one.

Find and Replace:

Define a case-sensitve term to search for, and what to replace it with. The replace field can be blank to simply find and remove some text.

Example:
Field content: "Coleman Tent 4-persons"
Rule: Find: "4-persons", Replace with "4-Person"
Result: "Coleman Tent 4-Person"

It's important to check the expected output when using find and replace, as the Find function is case sensitive and won't pick up on values unless they are exact. Find "Sony" won't find "sony" for example.

Remove:

The Remove function will remove any existing content from the field. 

Replace

This will overwrite any existing content in the field with text of your choosing.

Trim

The trim function removes any extra spaces at the start or end of the field.

E.g. " Coleman Tent " has spaces at the start and end of the field, applying the trim function would remove these and leave just "Coleman Tent"


Numeric Fields

Product information fields that can only include numbers, such as prices, stock or delivery cost will instead get options to create rules that add, subtract, multiply, divide or completely remove the existing number.



If you need any further support with this topic, or if something is missing from our article, please don't hesitate to start a chat with us at any time using the Intercom button in the bottom right of your screen.

Did this answer your question?