1. Home
  2. Blog
  3. Why Did ROAS Drop? Root-Cause Analysis

AI & Automation

Why Did ROAS Drop? Automated Root-Cause Analysis on Your Warehouse Data

Why did ROAS drop? Find the root cause in SQL by splitting CPC, conversion rate, order value and mix, then add a cited AI summary to your weekly reporting.

ROAS drops for one of four reasons: cost per click rose, conversion rate fell, average order value fell, or spend shifted toward lower-ROAS campaigns. Finding the ROAS drop root cause means measuring how much of the change each of those explains, which SQL can do in seconds on your own warehouse data. An AI model can then write the summary for your weekly report, as long as it only explains numbers your warehouse actually produced.

Today that answer usually costs an analyst half a day in four platform consoles and a spreadsheet, every Monday. Because the cause is almost always arithmetic before it is strategy, it can be computed, ranked and written up automatically.

This guide shows how heads of performance and agency analytics leads can build automated root-cause analysis on their own data: the decomposition, the SQL, where AI genuinely helps, the guardrails that stop it inventing reasons, and how insights turn into actions without giving a model the keys to your budgets.

The question every Monday meeting asks

"ROAS fell from 4.1 to 3.4 last week. Why?" The usual answers are guesses: competition, seasonality, the algorithm. Sometimes they are right, but they are rarely checked, and the meeting moves on without knowing whether the cause was one campaign, one marketplace or a site-wide conversion problem.

A useful answer has three parts:

  • Where: which channel, campaign or product group accounts for most of the change.
  • What: which component moved: CPC, conversion rate, order value or spend mix.
  • What else changed: bid and budget edits, out-of-stock products, price changes or tracking breaks recorded in the same window.

All three can be computed before anyone opens a dashboard.

Decomposing a ROAS drop root cause: spend, CPC, conversion rate, order value and mix

Start from the definition. ROAS is attributed revenue divided by spend. Both sides can be written in terms of clicks:

  • Revenue = clicks × conversion rate × average order value
  • Spend = clicks × cost per click

Clicks cancel, which gives the identity that makes root-cause analysis tractable:

  • ROAS = conversion rate × average order value ÷ CPC

So within a single campaign, ROAS can only fall if conversion rate fell, order value fell or CPC rose. Spend itself is not a driver at this level; it matters because scaling spend usually pushes CPC up or conversion rate down.

Taking logarithms turns the product into a sum, so each component's contribution can be read off directly:

  • Δ ln(ROAS) = Δ ln(CVR) + Δ ln(AOV) − Δ ln(CPC)

If ROAS fell 17% and the log changes say CPC explains two thirds of it, you have a quantified answer, not an opinion.

The mix effect

Across many campaigns, account ROAS is a spend-weighted average of campaign ROAS. It can fall even when no campaign got worse, simply because budget moved toward lower-ROAS campaigns (prospecting, new launches, upper-funnel video). Split the total change into:

  • Rate effect: campaigns' own ROAS changed, at the old spend mix.
  • Mix effect: spend shifted between campaigns with different ROAS.

This one split resolves a large share of Monday arguments. A drop that is 80% mix is a budget decision someone made, not a performance problem.

Before decomposing anything, make sure the revenue definition is consistent. If one platform reports 7-day click attribution and another 30-day, or your blended number uses gross rather than net revenue, fix that first. Our guide to true ROAS calculation covers the definitions.

Turning the decomposition into SQL over your warehouse

The inputs are ordinary daily performance tables, at campaign grain, already modeled in a marketing data warehouse. The query below compares two periods and computes component and mix contributions per campaign.

-- Example: ROAS driver decomposition, current week vs prior week (generic SQL)
WITH periods AS (
  SELECT
    channel, campaign_id,
    CASE WHEN report_date BETWEEN DATE '2026-10-19' AND DATE '2026-10-25' THEN 'cur'
         WHEN report_date BETWEEN DATE '2026-10-12' AND DATE '2026-10-18' THEN 'prev' END AS period,
    SUM(spend) AS spend, SUM(clicks) AS clicks,
    SUM(conversions) AS conv, SUM(attributed_revenue) AS rev
  FROM fct_ad_performance_daily
  WHERE report_date BETWEEN DATE '2026-10-12' AND DATE '2026-10-25'
  GROUP BY 1, 2, 3
),
wide AS (
  SELECT channel, campaign_id,
    SUM(CASE WHEN period = 'prev' THEN spend END) AS spend_p,
    SUM(CASE WHEN period = 'cur'  THEN spend END) AS spend_c,
    SUM(CASE WHEN period = 'prev' THEN rev END)   AS rev_p,
    SUM(CASE WHEN period = 'cur'  THEN rev END)   AS rev_c,
    SUM(CASE WHEN period = 'prev' THEN clicks END) AS clk_p,
    SUM(CASE WHEN period = 'cur'  THEN clicks END) AS clk_c,
    SUM(CASE WHEN period = 'prev' THEN conv END)   AS conv_p,
    SUM(CASE WHEN period = 'cur'  THEN conv END)   AS conv_c
  FROM periods GROUP BY 1, 2
),
totals AS (
  SELECT SUM(spend_p) AS tot_spend_p, SUM(spend_c) AS tot_spend_c FROM wide
)
SELECT
  w.channel, w.campaign_id,
  w.rev_p / NULLIF(w.spend_p, 0) AS roas_p,
  w.rev_c / NULLIF(w.spend_c, 0) AS roas_c,
  LN((w.conv_c / NULLIF(w.clk_c, 0)) / NULLIF(w.conv_p / NULLIF(w.clk_p, 0), 0)) AS dln_cvr,
  LN((w.rev_c / NULLIF(w.conv_c, 0)) / NULLIF(w.rev_p / NULLIF(w.conv_p, 0), 0)) AS dln_aov,
  LN((w.spend_c / NULLIF(w.clk_c, 0)) / NULLIF(w.spend_p / NULLIF(w.clk_p, 0), 0)) AS dln_cpc,
  -- rate effect at prior spend share, mix effect at prior ROAS
  (w.spend_p / t.tot_spend_p) * (w.rev_c / NULLIF(w.spend_c, 0) - w.rev_p / NULLIF(w.spend_p, 0)) AS rate_effect,
  (w.spend_c / t.tot_spend_c - w.spend_p / t.tot_spend_p) * (w.rev_p / NULLIF(w.spend_p, 0)) AS mix_effect
FROM wide w CROSS JOIN totals t
ORDER BY ABS(rate_effect) + ABS(mix_effect) DESC;

Rate and mix effects as written leave a small interaction term (the cross product of the share change and the ROAS change). Report it as its own line rather than hiding it inside one of the two.

Three practical rules keep the output honest:

  • Compare matured windows. Recent days are under-attributed because conversions arrive after the click. Compare periods that have both finished their attribution window, or compare same-age cohorts.
  • Set minimum volumes. A campaign with eight clicks will produce dramatic log changes that mean nothing. Group small campaigns into an "other" bucket.
  • Join the context tables. Bring in your change log (bid, budget and status edits), inventory snapshots and price history for the same dates, so candidate explanations come from records, not memory.

Where AI helps: ranking drivers and writing the summary

The SQL produces a table. A busy account lead needs three sentences. This is where a language model earns its place: not in computing the numbers, but in reading a ranked driver table plus context records and writing a clear summary.

A good automated insight reads like this (illustrative numbers):

Account ROAS fell from 4.1 to 3.4 (−17%). About 60% of the decline is mix: spend on prospecting campaigns rose from 22% to 35% of budget. The remaining rate decline is concentrated in two Sponsored Products campaigns where CPC rose 24% after bids were raised on Oct 20 (change log). Conversion rate and order value were stable.

Every number in that paragraph came from a query. The model's job was to select the top drivers, connect them to logged events and write plainly. That is different from ad hoc question answering over your data, which we covered in RAG for business AI search: here the analysis is fixed, scheduled and repeatable, and the model only narrates it.

Guardrails: grounded numbers, cited tables, no invented causes

The failure mode of AI analysis is a fluent, plausible reason that is not in the data: "competitors increased bids ahead of the holidays." Unless you have auction data showing that, it is fiction. The guardrails are mostly engineering, not prompting.

  • Numbers come only from tools. The model receives the query results as structured input and is instructed to quote values from them, never to calculate new ones. Validate the output: every number in the summary must match a value in the input, or the summary is rejected.
  • Cite sources. Each claim names the table or log it came from (fct_ad_performance_daily, change_log, inventory_daily). Readers can check, and reviewers can audit.
  • Causes must be records. The model may attribute a change to an event only if that event exists in a context table for the same entity and date range. Otherwise it reports the component ("CPC rose 24%") and stops.
  • Say "unexplained." When the decomposition shows a conversion rate drop with no matching event, the right output is "conversion rate fell across all channels; no change records explain it; check site and tracking." That is a useful finding.
  • Log every run. Keep the inputs, prompt version and output for each summary, so a wrong insight can be traced and fixed.

These map directly onto the validity, transparency and accountability themes in the NIST AI Risk Management Framework, which is a reasonable checklist if your clients ask how the system is governed.

Delivering insights where people work: digests, alerts and dashboards

An insight nobody reads is a cost. Deliver it where the decision happens:

  • A Monday digest in Slack, Teams or email, one paragraph per account with a link to the detail.
  • Anomaly-triggered alerts when ROAS moves beyond a threshold for a meaningful spend level, with the same decomposition attached.
  • A drivers panel in your dashboards, so the written summary and the chart that supports it sit together.

For agencies, the same output can feed automated client reporting, with the internal context (change log authors, internal notes) filtered out.

From insight to action: proposals inside approved rules

The natural next step is "and fix it." That should not mean a model changing bids freely. The safe pattern is that the insight engine produces proposals, and an approved rules layer decides what can happen:

  • Proposals carry evidence. "Reduce bids 10% on these keywords: CPC up 24% since Oct 20, conversion rate unchanged."
  • Rules set the limits. Maximum change per day, protected campaigns, spend floors and ceilings, and which actions need human approval.
  • Humans approve outside the limits. Anything above the thresholds goes to an account lead with one-click approve or reject.

This is how AI bid management and AI agents stay trustworthy at scale. For Tinuiti, we deployed 120+ automations across marketplaces and 80+ custom rules, bidding strategies and optimization workflows running in real time, all operating inside defined rules rather than open-ended model decisions.

If you want automated root-cause analysis on your own warehouse data, book a free 30-minute ad data review or ask for an ad data plan: we map your sources, your ROAS definition and where insights should land.

Frequently asked questions

What data does automated root-cause analysis need?

At minimum, daily spend, clicks, conversions and attributed revenue per campaign for each ad platform, with one consistent revenue and attribution definition. The analysis gets much more useful when you add context tables for the same dates: a log of bid, budget and status changes, inventory and price history, and site conversion data. Without those, the system can tell you which component moved but not which recorded event lines up with it.

What should a ROAS dashboard show when ROAS drops?

Next to the ROAS trend, show the driver split for the same period: how much of the change came from CPC, conversion rate, order value and spend mix, by channel and campaign. Add the change log entries and stock or price events for those dates, plus a short written summary that cites them. A chart alone shows that ROAS fell; the driver panel shows why.

How often should ROAS root-cause analysis run?

A weekly digest covers most planning conversations, and a daily check with a threshold catches sharp breaks such as a tracking failure or a product going out of stock. Keep the comparison windows long enough to be stable for your spend level, and remember that the most recent days are still collecting attributed conversions.

Can one analysis cover Amazon, Google and Meta together?

Yes, once the data is normalized into one model in your warehouse, but compare like with like. Each platform attributes conversions with different windows and rules, so run the decomposition within each platform first, then roll up spend mix across platforms. Mixing attribution models inside one ROAS number makes the drivers impossible to interpret.

Sources

Want this built for you?

See how we approach it in AI bid & budget management, or talk to an engineer about your accounts.

Talk to an engineer