Leonardo Bonalumi
Selected cases
  • Data Eng
  • Automation

How do you stop the same user getting different campaigns at the same time?

Behaviour-based audiences for marketing and advertising: each person in exactly one segment, no double campaigns, measurable results.

Role
Segmentation logic and build
Context
RCS MediaGroup
Period
2025-2026
Stack
  • Python
  • SQL
  • BigQuery
  • CDP sync

Segment names, thresholds and criteria are omitted, and any example is invented.

Context

A publisher with a subscription product and an advertising business, both wanting to speak to readers based on how they behave. Activation and retention: who gets which message, and when.

For a startup: you run several campaigns on the same users (onboarding, upsell, win-back) and nobody knows who is getting two at once.

Question

Which behavioural audiences are worth activating, and how do we make sure a reader who qualifies for a high-value one is not also hit as a generic one?

What I did

Audiences built from reading habits, recency, intensity and subscription status, with an explicit priority order: each person lands in exactly one audience, the most important one they qualify for. If the rules contradict each other, the process stops and says so, instead of quietly producing a wrong audience.

Where it landed

A daily update that brings the audiences into the customer data platform, where marketing and advertising activate them on site and in campaigns.

Effect

Who gets which offer is decided once, with a clear priority, instead of stacking campaigns that hit the same people. And since nobody is counted twice any more, it is possible to tell which campaign actually worked.

  1. Behaviour & subscription state warehouse
  2. One feature row per reader daily batch
  3. Priority cascade mutually exclusive by construction
  4. Platform sync idempotent per day
Priority order is semantic, not cosmetic: each segment removes its members from the pool the next one gets to see.