Marketing analytics prototype

Ad Performance Analysis Agent

A campaign-performance analysis prototype that parses ad-data CSVs, compares weekly metrics, highlights risks and wins, and uses Gemini to help produce actionable summaries.

Product work and architecture overview by Savi Saluwadana.

ReactTypeScriptExpressCSVGeminiReporting

What it does

Who it serves
Marketing operators and teams reviewing campaign performance.
Product purpose
An advertising analytics and reporting prototype.
  • CSV parsing of campaign dates, spend, clicks, impressions and conversions.
  • Week-over-week metrics and threshold-based risk/win flags.
  • Gemini-assisted summaries and email reporting paths.

How it works

  1. An operator supplies campaign data as CSV.
  2. The analysis module normalizes rows and compares current and previous periods.
  3. Threshold logic identifies risks and wins; Gemini helps summarize next steps.
  4. The reporting interface displays results and the email path can send a summary when configured.

Architecture

React / Vite → Express → CSV analysis + Gemini → email

Ad Performance Analysis Agent architectureAnalysis interface connects to Prototype API. Prototype API connects to Campaign analysis. Campaign analysis connects to Summary generation. Prototype API connects to Report delivery.Analysis interfaceReact / VitePrototype APIExpress / in-memory stateCampaign analysisCSV / thresholdsSummary generationGeminiReport deliveryResend / scheduler
Component overview. Arrows show requests and data flow between the main parts of the product.
Ad Performance Analysis Agent components and responsibilities
ComponentResponsibility
React interfaceCampaign-data input and analysis views.
Express APIPrototype configuration, scheduling and reporting endpoints.
Analysis moduleCSV normalization, weekly comparison and threshold flags.
Gemini + ResendConfigured AI summarization and email-report delivery.

Current scope

Google Ads and Supermetrics connection endpoints are currently mocks. Scheduled demonstration runs use generated sample CSVs and in-memory configuration, rather than a durable live account-ingestion pipeline.

Architecture summary reviewed . The repository is private; this page provides a public product summary.