|
|
Campaign ROI Agent
Author: Venkata Sudhakar
Marketing teams run dozens of campaigns simultaneously across channels like Google Ads, Instagram, email, and SMS. Without a unified ROI view, budget is often misallocated to low-performing channels. ShopMax India needs an agent that consolidates campaign spend and revenue data and surfaces the most efficient campaigns instantly.
This tutorial builds a Gemini ADK agent that reads campaign performance data, computes ROI, cost per acquisition (CPA), and revenue per rupee spent, then ranks campaigns from best to worst performer.
The below example shows a campaign ROI analysis agent for ShopMax India in a business context.
It gives the following output,
Campaign ROI Report - ShopMax India | March 2026
Total Spend : Rs 2,10,000
Total Revenue: Rs 6,27,000
Blended ROI : 198.6%
Ranked by Revenue per Rupee Spent:
1. Email - April Deals | ROI: 675% | CPA: Rs 91 | Rev/Rs: 7.75 [TOP]
2. SMS Blast - Clearance | ROI: 358% | CPA: Rs 185 | Rev/Rs: 4.58
3. Google Search - Electronics | ROI: 300% | CPA: Rs 708 | Rev/Rs: 4.00
4. Instagram Reels - TV Sale | ROI: 118% | CPA: Rs 1324 | Rev/Rs: 2.18
5. YouTube Pre-roll - Laptops | ROI: 20% | CPA: Rs 3333 | Rev/Rs: 1.20 [REVIEW]
Email delivers the highest ROI at 7.75x. YouTube Pre-roll underperforms
at 1.20x - consider pausing or reducing budget until creative is refreshed.
ShopMax India's marketing manager can use this agent every Monday morning to reallocate budget from underperforming channels to top performers. Connecting the agent to the Google Ads and Meta APIs enables live spend and conversion data rather than manually uploaded spreadsheets.
|
|