ROAS by campaign
“show every google ads campaign by week matched to our shopify orders by utm campaign, calculate roas as revenue divided by spend, and show status Agrees at 2 or more, No revenue at 0, Low ROAS below 2”
show every Google Ads campaign spend campaign by week matched to our Shopify orders by utm campaign, calculate roas as revenue divided by spend, and show status Agrees at 2 or more, No revenue at 0, Low ROAS below 2
What the agent built
4 steps, each one an ordinary Mammoth step you can open and change.
- FileGoogle Ads campaign spendCSV export · 21 rows
- FileShopify ordersCSV export · 23 rows
- StepSum spend by week and campaignStep 1
- StepSum orders by week and campaignStep 2
- JoinAdd Shopify revenue19 of 21 paired
- StepSet roas statusStep 4
- ResultCampaign ROAS by week21 rows · 9 flagged
- ScheduleRuns when you sayProposed
On the sample files, every step runs and the result has 21 rows.
- Download Google Ads campaign spend sample (21 rows)Google Ads: Reports > Predefined reports (Dimensions) > Campaigns > Download
- Download Shopify orders sample (23 rows)Shopify: Orders > Export
What you get back
The result of that run, the rows to look at first.
| Week | Campaign | Spend | Revenue | ROAS | Status |
|---|---|---|---|---|---|
| 2026-10-05 | search_generic | 710 | 0 | 0 | No revenue |
| 2026-10-26 | shopping_core | 500 | 0 | 0 | No revenue |
| 2026-09-07 | search_generic | 680 | 1,240 | 1.82 | Low ROAS |
| 2026-09-14 | search_generic | 720 | 1,350 | 1.88 | Low ROAS |
| 2026-09-21 | retargeting_video | 260 | 320 | 1.23 | Low ROAS |
| 2026-09-21 | search_generic | 700 | 1,180 | 1.69 | Low ROAS |
| 2026-09-28 | search_generic | 690 | 1,260 | 1.83 | Low ROAS |
| 2026-10-12 | search_generic | 735 | 1,300 | 1.77 | Low ROAS |
| 2026-10-26 | search_generic | 680 | 1,280 | 1.88 | Low ROAS |
| 2026-09-07 | search_brand | 420 | 1,740 | 4.14 | Agrees |
| 2026-09-07 | shopping_core | 510 | 1,620 | 3.18 | Agrees |
| 2026-09-14 | search_brand | 390 | 1,750 | 4.49 | Agrees |
How it works
How to use the Campaign ROAS by week workflow
- 1Get early accessWe invite people in small batches, job by job. You'll land on this workflow, already built and working on sample files.
- 2Swap in your exportsUpload your own files as they come out of your tools. The agent checks the workflow on your rows.
- 3Change it in words, then turn it onSay what to change and see the new result before anything saves. Then choose when it runs.
Campaign ROAS by week: questions
How do you calculate ROAS by campaign?
Which export should you use?
What happens to rows that do not match?
How do you change the rules?
Get early access to this workflow
It opens already built and working on sample files. Swap in your own exports to see your result.
Workflows like this
The number you report every month, rebuilt from the latest export, plus the forecast that follows from it.
- HubSpot leads by source, monthlyTrack new leads per month by original source and count customers from a HubSpot contacts export.See the workflow Built by the agent
- Customer lifetime value by cohortWork out customer lifetime value by signup month cohort from Shopify customers and orders exports, with revenue per customer and average order count.See the workflow Built by the agent
- Profit and loss by monthBuild a monthly profit and loss statement from a QuickBooks general ledger export, with revenue, COGS, gross profit, expenses, and net income.See the workflow Built by the agent
- Pareto (ABC) analysisEvery item ranked by its total, with its share, the running share and an A, B or C classSee the workflow Template
- Inventory turnover by SKURank Shopify SKUs by inventory turnover ratio using product, order, and inventory exports from the last 12 months.See the workflow Built by the agent
- Cohort retentionEach month's new customers, and the share still buying 1, 2, 3… months laterSee the workflow Template