PPCDATAFEED

Create your first rule

IF conditions, THEN actions, a live preview of what changes - and rules run in the order you drag them.

A rule changes one field for the products that match its conditions. Example: IF price is 1 or more AND price is less than 25 THEN set custom_label_1 to “02 from 1 to 25”.

Rule “Custom label 1 - price 1 to 25”: if price Greater or equal 1 AND price Less 25, then custom_label_1 Combine or set value - 02 from 1 to 25
  1. Open the data source, click the Rules tab and Add rule, then give the rule a Name.
  2. Under When pick a field (tabs Import fields and Internal fields; All and Current date are at the top of the list), a condition and a value. + And adds a condition that must also be true, + Or one that can be true instead.
  3. Under Then choose the field to change and what to do with it - for example Combine or set value: type a value, or put fields and text together in Value. Exclude the product at the top of the field list removes the matching products from the feed. Add action adds another line; the lines run top to bottom.
  4. Click Otherwise if products that do not match should get something else.
  5. The card on the right counts the products the rule changes while you edit. Preview changes shows them with the values before and after.
  6. Click Save rule.

Saved rules are listed under the Rules tab in the order they run - drag to reorder, switch off without deleting, or move a rule to Rules after grouping, which run last - after grouping and the AI Optimizer.

Rules tab of the Demo store source: Rules before grouping - 8 rules (Brand in title, Default brand, Title max 150, Description to plain text, No identifiers, Custom label 1 - price 1 to 25, UTM for Google, Exclude under 10), each with its switch, drag handle, edit and delete; Add rule and Use a rule from another data source; no Grouping rules and no Rules after grouping

Operators you can use

  • Text: Contains, Does not contain, Exact match, Does not exact match, Contains any of, Does not contains any of, Is equal to any, Is not equal to any, Is empty, Is not empty, Length exceeds, Length does not exceeds.
  • Numbers: Greater, Greater or equal, Less, Less or equal.
  • Dates (Current date): Is before, Is after, Is on or before, Is on or after, Is equal to - and what to compare: Exact day, Month, Day of week, Day of month, Time. For seasonal rules that switch themselves: sale rules by date.

Good to know

  • The list conditions - Contains any of, Is equal to any and their opposites - take one value per line, for example 1,000 product IDs.
  • Exact match and Is equal to any ignore capital letters, spaces at the ends and leading zeros (000173 = 173).
  • Number comparisons ignore letters and currency signs (19.99 EUR = 19.99); write decimals with a point.

Order and new columns

  • Rules run top to bottom. Drag the rows to change the order - the order on the screen is the order of execution.
  • New columns in the Products tab creates a field that did not exist in the source (a custom label, a computed price) - then a rule fills it.
  • In Preview changes, All fields shows every field of the products, so you can check what the rule sees.

Still stuck? Write to info@ppcdatafeed.com - we answer ourselves and can set it up with you.