Google Merchant

How to Set promotion_id Only for Products in a Sale

2026-06-21
Task

The feed has a promo_flag and a promo_code. The promotion_id column should contain the code only for sale products.

Short answer

Create promotion_id, clear it first, then insert {promo_code} only when promo_flag is not empty.

How to Do It in Eofferix

  1. Open the settings of the output promotion_id column.
    Animation showing how to open the promotion_id column settings in Eofferix
    The click is on the settings icon of the output promotion_id column.
  2. In Transformations, use two rules: the first leaves the value empty, the second checks promo_flag and inserts the sale code.
    Screenshot of transformation rules for the promotion_id column
    The Transformations block shows the full rule chain for this case.
  3. Save the column settings and go to the Export step.

Before / After

Before

source data
idtitlepromo_flagpromo_code
GM-150Sprint sneakersyesSUMMER25
GM-151City backpackSUMMER25

After

result
idpromotion_id
GM-150SUMMER25
GM-151

Process data faster with Eofferix

Create a free account to automate catalogs and price lists around your own rules.

Sign up