# Machine learning in marketing: uses, examples and the data each one needs

> Machine learning in marketing predicts who will buy, churn or respond and sets bids and budgets. The main uses, the data each needs and how to prove it works.

- URL: https://computese.com/machine-learning-in-marketing/
- Author: Duong Quan Nguyen, CEO, Computese
- Published: 2024-06-08
- Updated: 2026-09-25
- Topics: AI & automation, SEO

## In short
- Machine learning in marketing is prediction put to work: models estimate who will buy, churn or respond, which item to recommend and what an auction is worth, and ad platforms, CRMs and email tools act on those scores.
- Every use has a data floor. GA4 predictive metrics need 1,000 returning users who did and 1,000 who did not purchase or churn; a Meta lookalike needs a source of at least 100 people; a mix model needs about two years of weekly data.
- Platform-reported conversions and multi-touch attribution show correlation, not cause. Holdout groups and geo experiments measure incremental lift, and open-source mix models such as Google Meridian and Meta Robyn use those results to calibrate budgets.
- The foundations decide the results: consented first-party data (consent mode v2 for EEA traffic, GDPR, PIPEDA), a tested warehouse that joins events, orders and CRM records, and a bias review before a model decides who sees an offer.

Machine learning in marketing uses models trained on customer and campaign data to predict who will buy, churn or respond, which product fits and what an ad impression is worth, then acts on those predictions in ad platforms, CRMs and email tools. It is only as good as the consented data it learns from and the experiments that check it.

This guide covers the uses that matter in practice, with examples from Google, Meta, Microsoft and Amazon documentation: segmentation and lookalike audiences, propensity and churn scores, recommendations, lead scoring, automated bidding, marketing mix modelling, attribution, incrementality tests and generative AI. For each, it explains how it works and the data it needs. The second half covers what it takes: consent, a warehouse, measurement and the risks.

## What machine learning does in marketing

Almost every use falls into one of three jobs. A model **predicts** (a score per customer, lead or auction), **decides** (a bid, a budget split, the next offer) or **generates** (a headline, an image variant). Predictions are worth something only when a system acts on them, and actions are worth something only if you can show they changed an outcome. That thread runs through this guide.

| Use                           | What the model predicts or decides                 | Data it needs                                | Where it usually runs         |
| ----------------------------- | -------------------------------------------------- | -------------------------------------------- | ----------------------------- |
| Segmentation and lookalikes   | Groups of similar customers; people like your best | Customer attributes and orders; a seed list  | Warehouse, ad platforms       |
| Propensity and churn scores   | Probability of buying or lapsing in a set window   | Event history with known outcomes            | Google Analytics 4, warehouse |
| Recommendations               | The item a person is likely to want next           | User and item interactions                   | Website, app, email           |
| Predictive lead scoring       | Which open leads will qualify                      | Closed leads, both won and lost              | CRM                           |
| Bidding and budget automation | What each auction or impression is worth           | The conversions and values you send          | Google Ads, Meta Ads          |
| Marketing mix modelling       | Each channel's contribution to sales               | About two years of weekly spend and sales    | Meridian, Robyn               |
| Multi-touch attribution       | Credit for each tracked touchpoint                 | Click and view paths                         | Google Analytics, Google Ads  |
| Incrementality tests          | The sales a campaign caused                        | A random holdout or matched regions          | Lift tools, GeoLift, GeoX     |
| Generative AI for creative    | New copy, image and video variants                 | Brand assets, landing pages, approved claims | Performance Max, Advantage+   |

Two things are worth knowing before the details. Much of the machine learning a marketing team uses already sits inside the tools it pays for, so the work is feeding those models good signals and checking their claims, not building models from scratch. And every use has a minimum amount of data below which it does not work, which the sections below spell out.

## Customer segmentation and lookalike audiences

Segmentation groups customers who behave alike so that each group gets a different message, offer or budget. The machine learning approach is clustering: describe each customer with a handful of features, commonly recency, frequency and monetary value (RFM) plus product mix and preferred channel, and let an algorithm such as k-means find groups whose members are closer to each other than to anyone else. The algorithm does not name the groups. A person reads the averages, decides that one cluster is "lapsed high-value buyers", and chooses what to do about it. Good segments stay stable from month to month and differ enough to deserve different treatment; if they do neither, hand-written rules will do the job for less.

Lookalike audiences work the other way round: you hand the ad platform a seed list of your best customers and its model finds people who resemble them. On Meta, a [lookalike source needs at least 100 people](https://www.facebook.com/business/help/465262276878947), Meta recommends 1,000 to 5,000, you choose the size as a percentage of the population where the ad set runs, and people in the source are excluded from the result. The seed matters more than the settings: your most profitable customers produce a different audience from everyone who ever bought once. Lookalikes are limited or unavailable for some ads about financial products, employment and housing, for reasons covered under risks below.

On Google Ads, the help centre points advertisers to [optimized targeting](https://support.google.com/google-ads/answer/12463119) in place of similar segments. It is turned on automatically, treats your first-party data segments as hints rather than limits, and may reduce or stop serving to them when it finds better-performing traffic elsewhere. That is efficient for conversions, and a surprise for teams who thought they were targeting their customer list.

## Propensity and churn prediction

Propensity scoring is the core of predictive analytics in marketing. A propensity model scores each customer's probability of doing something within a fixed window: buying in the next seven days, upgrading, or not coming back. It is supervised learning. You take a snapshot of history, label each customer with what they did in the window that followed, and train a classifier (common choices are logistic regression and [gradient-boosted trees](https://computese.com/a-revolutionary-machine-learning-algorithm/)) on features such as days since the last visit, recent orders, pages viewed, support tickets and discount use. The model then scores today's customers, the scores become a ranked list, and a business rule decides who near the top gets an offer, a call or nothing.

![Event records flow from a database into a model gear, which ranks a column of customer cards by gauge level; only the orange top-risk card receives an offer envelope sent to a phone.](https://computese.com/images/blog/machine-learning-in-marketing/propensity.7d9df31607-1536.webp)

*The model only ranks customers. Who gets the offer is a business rule, and the rule is what you test.*

Google Analytics 4 ships three of these models ready-made. Its [predictive metrics](https://support.google.com/analytics/answer/9846734) are purchase probability (a user active in the last 28 days makes a purchase in the next 7), churn probability (a user active in the last 7 days is not active in the next 7) and predicted revenue over the next 28 days. They come with a data floor: over a seven-day period in the last 28 days, at least 1,000 returning users must have met the condition and at least 1,000 must not, and model quality has to hold over time. Below that, the metrics do not appear; if quality drops later, Analytics stops updating them. Scores are recalculated once a day and can be used to build predictive audiences.

A model in your own warehouse gives you what GA4 cannot: your definition of churn (a cancelled subscription, not a quiet week on the website), features from orders, billing and support systems, and scores written back to your CRM or email platform.

The score is not the decision. A churn score says who is likely to leave, not who will stay because of an offer. Some high-risk customers leave whatever you send, and some would have stayed anyway, so a discount sent to the whole top of the list partly pays people for doing nothing. Uplift modelling targets that gap by estimating the difference an action makes for each customer, and it learns from the results of an earlier randomized test. At minimum, send the retention offer to a random part of the high-risk group and compare it with the rest.

## Recommendations

Recommendation models choose which product, article or offer to show each person: the "frequently bought together" block, the next-episode row, the product grid in a follow-up email. Most combine two approaches. Collaborative filtering learns from interactions alone (people who bought or viewed this item also engaged with that one) and needs no understanding of what the items are. Content-based methods use item attributes such as category, brand, price band and description, which lets them recommend a new product nobody has clicked yet: the cold-start problem that collaborative filtering cannot solve on its own.

The data floor here is interactions. Amazon Personalize, a managed recommendation service, will not train until it has at least [1,000 item interactions and 25 users with at least two interactions each](https://docs.aws.amazon.com/personalize/latest/dg/limits.html). That is the minimum to train, not a promise of useful results. The honest benchmark is a best-seller list: run the recommender against a simple popularity rule in an A/B test, and keep it only if revenue or engagement per visitor rises.

## Predictive lead scoring

In B2B marketing the scarce resource is sales time, so the model ranks open leads by their chance of turning into an opportunity. It learns from leads that were already closed either way, using fields such as source, industry, company size, pages visited, emails opened and time to first response. Rule-based scoring, where a demo request earns more points than a whitepaper download, is the baseline the model has to beat.

Microsoft's Dynamics 365 Sales shows what the minimum looks like. Its [predictive lead scoring](https://learn.microsoft.com/en-us/dynamics365/sales/configure-predictive-lead-scoring) will not build a model until at least 40 qualified and 40 disqualified leads were created and closed in the training window you pick, from three months to two years. It can retrain automatically every 15 days, and it marks a model as not ready to publish when its accuracy, measured as the area under the curve (AUC), falls below a threshold. Whichever CRM you use, check the same three things: enough closed outcomes of both kinds, a retraining schedule, and a visible accuracy measure.

The score earns more when it flows back to advertising. If ad platforms only see form fills, they optimize for form fills, junk included. Google's [enhanced conversions for leads](https://support.google.com/google-ads/answer/9888656) sends hashed (SHA-256) first-party data from your lead forms and matches it with the lead outcomes you import later, so measurement, and the bidding that relies on it, reflects the leads your sales team actually qualified.

## Bidding and budget automation in ad platforms

This is where most marketers use machine learning every day, often without calling it that.

**Google Ads Smart Bidding.** [Smart Bidding](https://support.google.com/google-ads/answer/7065882) is Google's name for bid strategies that use its AI to optimize for conversions or conversion value in every auction, which it calls auction-time bidding. The strategies are Target CPA, Target ROAS, Maximize conversions and Maximize conversion value. At each auction the model weighs signals no person could adjust by hand at that grain: device, location and location intent, time of day, remarketing list membership, browser, operating system and the actual search query rather than only the matched keyword. Google notes that some strategies need a minimum volume of historical conversion data, and from June 2026 it is relabelling strategies (for example, "Maximize conversions with a Target CPA" becomes "Target CPA") without changing how they bid.

**Performance Max.** [Performance Max](https://support.google.com/google-ads/answer/10724817) is a goal-based campaign type that reaches all Google Ads inventory, including YouTube, Display, Search, Discover, Gmail and Maps, from one campaign. You supply conversion goals, creative assets grouped into asset groups, and audience signals; Google's models decide where to serve and which combinations of assets to show. A Search campaign with an exact-match keyword still takes priority over Performance Max when a query matches that keyword.

**Meta Advantage+.** Meta describes [Advantage+](https://www.facebook.com/business/news/meta-advantage-explained-in-two-minutes/) as a suite that uses AI to optimize in real time and match ads to the people most likely to act. Its end-to-end campaigns for sales, app promotion and leads automate audience, placement and budget together; Advantage+ sales campaigns were formerly called Advantage+ shopping campaigns, as Meta's April 2025 explainer notes. Single-step options automate one piece, such as Advantage+ audience or Advantage+ campaign budget.

All three share one weak point: they optimize towards the conversion you send them, and they report their own results. Set a cheap micro-conversion as the goal, and the model finds people who do that cheap thing. Send revenue, qualified leads or margin as the conversion value, and it looks for those instead. The platform's report then credits its own campaigns, which is why the measurement sections below matter.

## Marketing mix modelling with Meridian and Robyn

Marketing mix modelling (MMM, often spelled marketing mix modeling) answers the budget question directly: how much did each channel contribute to sales, and where should the next dollar go? It is a regression on aggregated time series, usually weekly. Sales, leads or sign-ups sit on one side; spend or impressions per channel, plus prices, promotions, seasonality and holidays, sit on the other. Because it uses totals rather than people, it needs no cookies or user-level data, which keeps it working as tracking individuals becomes harder. Its output splits each week's sales into a baseline, what would have sold without marketing, and a contribution from each channel.

Two transformations make it specific to marketing. Adstock models carry-over: an ad seen this week still has some effect next week, fading over time. Saturation models diminishing returns: each extra dollar in a channel buys less response than the one before, which Robyn, for example, models with a Hill function. The fitted curves are what turn the model into a budget planner.

![Icons for a television, a search magnifier, a phone feed and an envelope feed a model box that splits a weekly bar chart into a grey baseline and stacked channel layers, one layer orange.](https://computese.com/images/blog/machine-learning-in-marketing/mmm.17a6fdd234-1536.webp)

*A mix model never looks at a single customer. It explains weekly totals, which is why it survives consent loss and why it needs experiments to stay honest.*

The two best-known open-source frameworks come from the ad platforms themselves:

|                   | Google Meridian                                              | Meta Robyn                                                                      |
| ----------------- | ------------------------------------------------------------ | ------------------------------------------------------------------------------- |
| Method            | Bayesian causal inference, sampled with MCMC (NUTS)          | Ridge regression, with evolutionary hyperparameter search (Nevergrad)           |
| Language          | Python 3.11 to 3.13; at least one GPU recommended            | R, plus a Python beta translated with the help of LLMs                          |
| Distinctive parts | Geo-level models, reach and frequency, experiments as priors | Adstock and saturation search, trend and season decomposition, budget allocator |
| Calibration       | Experiment results as priors; Meridian GeoX for geo tests    | Recommends Conversion Lift or GeoLift results as ground truth                   |
| Licence           | Apache 2.0                                                   | MIT                                                                             |

[Meridian](https://github.com/google/meridian) became [available to all marketers on January 29, 2025](https://blog.google/products/ads-commerce/meridian-marketing-mix-model-open-to-everyone/), with a partner program of more than 20 measurement firms and an MMM Data Platform that supplies Google media data such as impressions, clicks, cost and search query volume. [Robyn](https://github.com/facebookexperimental/Robyn), from Meta Marketing Science, describes itself as experimental and semi-automated, and as best suited to advertisers with granular digital and direct-response data.

MMM has the heaviest data needs of anything in this guide. Robyn's [analyst's guide to MMM](https://facebookexperimental.github.io/Robyn/docs/analysts-guide-to-MMM/) asks for at least two years of weekly history (four to five years if only monthly data exists) and about ten observations for every input variable. It also sets aside at least four weeks just for collecting data, because spend from every channel, prices, promotions and outcomes rarely sit in one place. Neither framework can separate two channels that always rise and fall together; that is what experiments are for, and both are built to take experiment results as inputs.

## Multi-touch attribution and its limits

Multi-touch attribution (MTA) works on individual journeys: it takes the tracked clicks and views before each conversion and divides the credit among them. The machine learning version is data-driven attribution. Google's [data-driven attribution](https://support.google.com/google-ads/answer/6394265) compares the paths of customers who convert with the paths of those who do not, and gives more credit to the interactions that raise the chance of converting. It is the default for most Google Ads conversion actions, and Google recommends at least 200 conversions and 2,000 ad interactions in 30 days for it to work well.

Its limits are structural:

- **It sees only what it can track.** Google Ads' data-driven model looks at interactions with your Search, YouTube, Display and Demand Gen ads, not at the email, social post or TV spot that came before them. Each ad platform reports from its own view of the journey, so adding up platform-reported conversions can count the same sale more than once.
- **Paths are broken.** Safari has [blocked cross-site cookies by default since March 2020](https://webkit.org/blog/10218/full-third-party-cookie-blocking-and-more/), visitors who refuse consent drop out of user-level tracking, and journeys cross devices. Chrome did not remove third-party cookies after all: in [April 2025 Google said](https://privacysandbox.google.com/blog/privacy-sandbox-next-steps) Chrome would keep its current third-party cookie choice and would not roll out a new standalone prompt. The paths that MTA sees are still a partial sample.
- **Credit is not cause.** Attribution shows which ads sat on converting paths, not whether the sale would have happened without them. In [eBay's paid search experiments](https://www.nber.org/papers/w20171), published in _Econometrica_ in 2015, brand-keyword ads had no measurable short-term benefit and returns from paid search were a fraction of non-experimental estimates. A [comparison of 12 lift studies at Facebook](https://www.kellogg.northwestern.edu/faculty/gordon_b/files/kellogg_fb_whitepaper.pdf) found that common observational methods often failed to reproduce the experimental results, even with thousands of behavioural variables.

Use attribution for what it does well: fast comparisons of keywords, audiences and creatives inside one platform. Do not use it to split the budget between platforms.

## Incrementality tests: measuring what marketing caused

An incrementality test, or lift test, measures what attribution cannot: the sales that happened because of the marketing. You randomly withhold the ads, email or offer from part of the audience, run the campaign as normal for everyone else, and compare the outcomes. The incremental effect is the difference between the groups, not the conversions in the exposed group.

![A grid of grey tokens is split by a dashed line; phones deliver ads only to the left group. Each group fills a shopping basket, and only the extra boxes in the left basket are orange.](https://computese.com/images/blog/machine-learning-in-marketing/holdout.590706f7cb-1536.webp)

*Incremental sales are the gap between the two baskets, not the size of the first one.*

Two designs cover most needs:

- **User-level holdouts.** People are randomly assigned to see or not see the campaign. Platform tools such as Meta Conversion Lift work this way, and email and CRM programs are the easiest place to start, because you control the send list.
- **Geo experiments.** Regions, not people, are assigned to treatment and control, which works without tracking individuals and suits TV, radio and out-of-home. Meta's open-source [GeoLift](https://github.com/facebookincubator/GeoLift) uses synthetic control methods and includes power calculators for choosing markets. Google's [Meridian GeoX](https://developers.google.com/meridian/geox) supports holdback, go-dark and heavy-up designs and converts the results into priors for a Meridian model.

To run a first holdout test:

1. **Write the decision down first:** the metric (sales, qualified leads, revenue per customer) and what result would make you cut, keep or grow the channel.
2. **Size the test** with a power calculation, so the holdout is large enough to detect the effect you expect over the test period.
3. **Randomize and keep the holdout clean.** Exclude it from every channel you are testing, including retargeting.
4. **Run it through at least one full purchase cycle**, so delayed sales are counted.
5. **Compare the groups on the business metric**, then feed the result into your mix model as calibration.

## Generative AI for creative and copy

Generative models are the newest layer, and the one many people now mean by AI in marketing: instead of predicting who sees an ad, they produce the ad. In Performance Max, text customization writes extra headlines and descriptions from your landing page, domain and current ads; Final URL expansion can swap in a more relevant landing page with a matching dynamic headline; and auto-generated videos add video assets. Google states that you remain responsible for the accuracy and compliance of dynamically generated assets. Meta's Advantage+ creative includes generative tools that adjust aspect ratios and ad copy and add motion to images.

Three rules keep this useful. Brief the tools with approved claims, prices and brand terms. Have a person review every variant that makes a factual claim before it runs, because the advertiser answers for it. And test generated creative against your own in a controlled experiment rather than trusting an in-campaign comparison. For AI-written pages meant to rank in search, the rules come from Google Search and are different: see [AI-generated content in SEO](https://computese.com/the-rise-of-ai-generated-content-in-seo/).

## The foundations: consent, first-party data and a warehouse

Most of the models above learn from data about people, so the first question is not which algorithm to use but whether you may use the data, and whether it is any good.

### Consent and privacy law

**GDPR (EU and EEA).** The GDPR defines [profiling](https://eur-lex.europa.eu/eli/reg/2016/679/oj/eng) as automated processing that evaluates or predicts personal aspects such as preferences, interests, behaviour, location or movements, so a churn or propensity score is profiling. Article 21 gives people the right to object at any time to processing for direct marketing, including the profiling behind it, after which that processing must stop. Article 22 restricts decisions based solely on automated processing that have legal or similarly significant effects, which becomes relevant when a model's output does more than choose an ad or an email.

**PIPEDA (Canada).** [PIPEDA](https://www.priv.gc.ca/en/privacy-topics/privacy-laws-in-canada/the-personal-information-protection-and-electronic-documents-act-pipeda/pipeda_brief/) applies to private-sector organizations that collect, use or disclose personal information in commercial activities; Alberta, British Columbia and Quebec have their own substantially similar laws for activity inside the province. The Privacy Commissioner's [policy position on online behavioural advertising](https://www.priv.gc.ca/en/privacy-topics/technology/online-privacy-tracking-cookies/tracking-and-ads/bg_ba_1206/) accepts opt-out consent only under conditions: the purpose is explained clearly, not buried in a privacy policy; opting out is easy, immediate and persistent; and the data is limited to non-sensitive information, which excludes health, financial data, ethnic origin and sexual orientation, among others. It adds that organizations should avoid knowingly tracking children and should not use techniques people cannot control, such as device fingerprinting.

**Google's consent requirements for EEA traffic.** As part of [stricter enforcement of its EU user consent policy](https://support.google.com/google-ads/answer/14625550), Google requires advertisers who want measurement, ad personalization and remarketing for users in the EEA to collect consent and pass it to Google. Sites that run their own banner must implement consent mode v2, and Google warned that offline audiences such as Customer Match lists would degrade from March 2024 unless advertisers moved to the updated APIs or attested to consent. [Consent mode](https://developers.google.com/tag-platform/security/concepts/consent-mode) carries two signals for advertising use, `ad_user_data` and `ad_personalization`, alongside the storage signals `ad_storage` and `analytics_storage`. In basic mode, Google tags do not load until the visitor chooses; in advanced mode, they load and send cookieless pings while consent is denied, which gives Google an advertiser-specific model for the conversions it cannot observe, instead of a general one.

> [!IMPORTANT]
> Consent mode passes the visitor's choice to Google; it does not make the choice lawful. Obtaining valid consent (the banner, its wording and the records) stays your responsibility under the GDPR, PIPEDA or whichever law applies to you.

### A warehouse the models can trust

Ad platforms train on the events you send them. Your own models train on whatever you can join together: web and app events, orders, returns, subscriptions, CRM stages and support tickets. That join is the unglamorous core of machine learning in marketing, and it belongs in a warehouse, not in spreadsheets exported from each tool.

A common starting point is GA4's [BigQuery export](https://support.google.com/analytics/answer/9358801), which sends raw events to BigQuery once a day and, with streaming export, continuously through the day; standard properties are limited to 1 million events a day in the daily export. From there the work is engineering: a customer ID that matches across systems, tests that fail loudly when a feed goes stale, one agreed definition of "active" and "churned", and feature tables rebuilt on a schedule so that training and scoring read the same logic. Watch for leakage: a field that is only filled in after the outcome, such as a cancellation reason, makes a model look brilliant in testing and useless in production.

Our [data platform service](https://computese.com/services/data-platform/) covers this layer: ingestion pipelines, a governed warehouse or lakehouse with tests and lineage, and the features and datasets that machine learning reads. For the reporting side of the same stack, see [building data analytics software](https://computese.com/building-data-analytics-software/), and for lakes, streaming and what a data platform costs to run, [big data analytics explained](https://computese.com/the-power-of-big-data-analytics/).

## How to tell whether a model is helping

A model's accuracy (AUC, precision, forecast error) says how well it ranks or predicts. It does not say whether acting on its output made money. Prove that the same way as for any campaign, with a holdout:

1. **Define the action and the business metric**, for example "retention offer to the highest-scored customers" and "revenue per customer over the following quarter".
2. **Keep a random holdout group the model does not touch:** eligible customers who get the previous treatment, or none.
3. **Compare the two groups on the business metric**, never on the model's own score.
4. **Backtest before launch** on a period the model never saw, and check that no feature leaks the outcome.
5. **Monitor and retrain.** Behaviour, prices and tracking change, and a model trained on last year's journeys drifts. GA4 stops updating its predictions when model quality drops; your own models need the same kind of guard.
6. **Keep a small holdout permanently**, so you notice when the lift disappears.

## Risks: bias, privacy and trusting platform numbers

**Bias in targeting and delivery.** Optimization can discriminate even when the advertiser does not intend it. A [2019 study](https://arxiv.org/abs/1904.02095), published in the Proceedings of the ACM on Human-Computer Interaction, ran real ads on Facebook with neutral targeting and found delivery skewed along gender and racial lines for employment and housing ads, driven by the ads' content and budgets as well as the platform's relevance predictions. In June 2022 the US Department of Justice [settled with Meta](https://www.justice.gov/archives/opa/pr/justice-department-secures-groundbreaking-settlement-agreement-meta-platforms-formerly-known) in its first case challenging algorithmic bias under the Fair Housing Act: Meta agreed to stop using its Special Ad Audience tool for housing ads and to build a new delivery system for them, under court oversight. The same risk applies to your own targeting: a model or a lookalike seeded with past customers tends to reproduce whoever you reached before. Check who a model leaves out, especially for credit, jobs, housing, insurance and health, and see [fairness in AI decision-making](https://computese.com/improving-fairness-in-ai-decision-making/) for the methods.

**Privacy beyond the legal minimum.** Models infer things people never told you, such as a health condition from purchases or financial strain from payment patterns. Even where an inference is lawful, using it in targeting can cost more trust than it earns. Exclude sensitive inferences by design, keep features to what the purpose needs, and honour an objection or opt-out everywhere the customer's data flows, including audiences already uploaded to ad platforms.

**Over-trusting platform-reported results.** Every ad platform reports conversions through its own attribution, and its bidding optimizes towards that same measure. The eBay and Facebook studies above show how far correlation-based numbers can drift from causal ones. Treat in-platform ROAS as a steering signal, and make budget decisions on experiments and a calibrated mix model.

Start with one use, one business metric and one holdout, and add the next model only when the first has shown lift. Where a model or an AI step belongs inside a marketing workflow, with an evaluation before every change and a person approving what matters, that is the work of our [AI and automation service](https://computese.com/services/ai-automation/).

## Key terms
- **Propensity model**: A supervised model that estimates each customer's probability of an action in a fixed window, such as buying in the next seven days or lapsing. It ranks customers; a business rule decides what to do with the ranking.
- **Lookalike audience**: An ad-platform audience of people who resemble a seed list you provide, such as your best customers. The platform's model does the matching; you control the seed and the audience size.
- **Smart Bidding**: Google Ads bid strategies (Target CPA, Target ROAS, Maximize conversions, Maximize conversion value) that set a bid in every auction from signals such as device, location, time of day and the search query.
- **Marketing mix modelling (MMM)**: A regression on aggregated, usually weekly, data that estimates how much each channel contributed to sales, then turns the fitted response curves into a budget plan. It needs no user-level tracking.
- **Adstock and saturation**: The two transformations in a mix model: adstock carries an ad's effect into later weeks as it fades, and saturation makes each extra dollar in a channel buy less response than the one before.
- **Multi-touch attribution (MTA)**: Dividing credit for a conversion among the tracked ad interactions on the path to it. Data-driven attribution learns the split by comparing the paths of people who converted with those who did not.
- **Incrementality (lift)**: The outcome caused by marketing: the difference between a group that received the campaign and a comparable group that did not, measured with a holdout or a geo experiment.
- **Holdout group**: A randomly chosen part of the audience that is deliberately left out of a campaign or a model's actions, kept as the baseline for measuring lift.
- **Consent mode**: Google's API that passes a visitor's consent choices (ad_storage, analytics_storage, ad_user_data, ad_personalization) to Google tags, which then adjust what they collect and send.
- **First-party data**: Data a business collects directly from its own customers and visitors, such as orders, sign-ups, CRM records and site events, as opposed to data bought from or tracked by third parties.

## Common questions

### What are examples of machine learning in marketing?

The most common ones already run inside marketing tools: Google Ads Smart Bidding sets a bid for each auction, Meta Advantage+ chooses audiences, placements and budgets, and Google Analytics 4 predicts purchase and churn probability. Teams also build their own churn and propensity scores, product recommendations, predictive lead scores in the CRM and marketing mix models with Google's Meridian or Meta's Robyn.

### What is the difference between AI and machine learning in marketing?

Machine learning is the part of AI that learns patterns from data, and it drives the predictive uses: scoring, bidding, recommendations and mix models. In marketing, AI now also means generative AI, which writes copy variants, resizes and animates images and generates video inside tools such as Performance Max and Advantage+ creative. Generated assets still need a person to check them, because the advertiser remains responsible for what they claim.

### What is marketing mix modeling, and how is it different from attribution?

Marketing mix modeling is a regression on weekly totals of sales and spend by channel, with seasonality, prices and promotions as controls, so it needs no user-level tracking. Multi-touch attribution splits the credit for individual tracked journeys. A mix model covers channels attribution cannot see, such as TV, but needs about two years of weekly data, and both should be checked against incrementality experiments.

### How much data do you need for machine learning in marketing?

It depends on the use. GA4 predictive metrics need at least 1,000 returning users who met the condition and 1,000 who did not; a Meta lookalike needs a source of at least 100 people; Dynamics 365 lead scoring needs 40 qualified and 40 disqualified closed leads; a mix model needs about two years of weekly data. Below those floors, start with simple rules and experiments.

### Is machine learning in marketing legal under GDPR and PIPEDA?

Yes, with conditions. Under the GDPR, scoring customers is profiling, people can object at any time to direct marketing and the profiling behind it, and solely automated decisions with significant effects are restricted. Under PIPEDA, consent must be meaningful, and Canada's Privacy Commissioner accepts opt-out consent for behavioural advertising only when the purpose is explained clearly, the opt-out is easy, immediate and persistent, and the data is not sensitive.

### How do I know if a marketing model is actually working?

Keep a random holdout group that the model does not touch, and compare a business outcome such as revenue or retention between the two groups. Model accuracy measures how well it ranks, not whether acting on the ranking paid off. For ad platforms, use lift tests or geo experiments rather than the platform's own attributed conversions.

## Sources
1. [Create a Lookalike Audience](https://www.facebook.com/business/help/465262276878947), Meta Business Help Centre
2. [About optimized targeting](https://support.google.com/google-ads/answer/12463119), Google Ads Help
3. [[GA4] Predictive metrics](https://support.google.com/analytics/answer/9846734), Google Analytics Help
4. [Amazon Personalize endpoints and quotas](https://docs.aws.amazon.com/personalize/latest/dg/limits.html), Amazon Web Services
5. [Configure predictive lead scoring](https://learn.microsoft.com/en-us/dynamics365/sales/configure-predictive-lead-scoring), Microsoft Learn
6. [About enhanced conversions](https://support.google.com/google-ads/answer/9888656), Google Ads Help
7. [About Smart Bidding](https://support.google.com/google-ads/answer/7065882), Google Ads Help
8. [About Performance Max campaigns](https://support.google.com/google-ads/answer/10724817), Google Ads Help
9. [Meta Advantage+ explained in two minutes](https://www.facebook.com/business/news/meta-advantage-explained-in-two-minutes/), Meta for Business
10. [Meridian: an MMM framework for advertisers (repository and README)](https://github.com/google/meridian), Google (GitHub)
11. [Meridian is now available to everyone](https://blog.google/products/ads-commerce/meridian-marketing-mix-model-open-to-everyone/), Google
12. [Robyn: open-source marketing mix modeling package (repository and README)](https://github.com/facebookexperimental/Robyn), Meta Marketing Science (GitHub)
13. [An Analyst's Guide to MMM](https://facebookexperimental.github.io/Robyn/docs/analysts-guide-to-MMM/), Meta Robyn documentation
14. [About data-driven attribution](https://support.google.com/google-ads/answer/6394265), Google Ads Help
15. [Full Third-Party Cookie Blocking and More](https://webkit.org/blog/10218/full-third-party-cookie-blocking-and-more/), WebKit
16. [Next steps for Privacy Sandbox and tracking protections in Chrome](https://privacysandbox.google.com/blog/privacy-sandbox-next-steps), Google Privacy Sandbox
17. [Consumer Heterogeneity and Paid Search Effectiveness: A Large Scale Field Experiment](https://www.nber.org/papers/w20171), NBER Working Paper 20171 (Econometrica, 2015)
18. [A Comparison of Approaches to Advertising Measurement: Evidence from Big Field Experiments at Facebook](https://www.kellogg.northwestern.edu/faculty/gordon_b/files/kellogg_fb_whitepaper.pdf), Kellogg School of Management (white paper)
19. [GeoLift: geo-experimental methodology based on synthetic control methods](https://github.com/facebookincubator/GeoLift), Meta (GitHub)
20. [Meridian GeoX](https://developers.google.com/meridian/geox), Google for Developers
21. [Regulation (EU) 2016/679 (General Data Protection Regulation)](https://eur-lex.europa.eu/eli/reg/2016/679/oj/eng), EUR-Lex
22. [PIPEDA in brief](https://www.priv.gc.ca/en/privacy-topics/privacy-laws-in-canada/the-personal-information-protection-and-electronic-documents-act-pipeda/pipeda_brief/), Office of the Privacy Commissioner of Canada
23. [Policy position on online behavioural advertising](https://www.priv.gc.ca/en/privacy-topics/technology/online-privacy-tracking-cookies/tracking-and-ads/bg_ba_1206/), Office of the Privacy Commissioner of Canada
24. [Resources to help you get ready for privacy and regulatory changes for traffic in the European Economic Area (EEA)](https://support.google.com/google-ads/answer/14625550), Google Ads Help
25. [Consent mode overview](https://developers.google.com/tag-platform/security/concepts/consent-mode), Google for Developers
26. [BigQuery Export](https://support.google.com/analytics/answer/9358801), Google Analytics Help
27. [Discrimination through optimization: How Facebook's ad delivery can lead to skewed outcomes](https://arxiv.org/abs/1904.02095), Proceedings of the ACM on Human-Computer Interaction (arXiv)
28. [Justice Department Secures Groundbreaking Settlement Agreement with Meta Platforms](https://www.justice.gov/archives/opa/pr/justice-department-secures-groundbreaking-settlement-agreement-meta-platforms-formerly-known), U.S. Department of Justice
