BigQuery · ETL Pipeline · Looker Studio · Google Cloud

AKD Media — Centralized Marketing & Lead Performance Analytics Pipeline

A fully automated ETL pipeline that aggregates data from LeadProsper, Meta Ads, Google Ads, and CaseOff API into BigQuery — delivering real-time dashboards on spend, revenue, profit, and ad-level performance across all clients.

4
Data Sources
Meta, Google, LeadProsper, CaseOff
ETL
Automated Pipeline
Extract, Transform, Load
Live
BigQuery Warehouse
Real-time data
ROI
Looker Dashboards
Actionable insights

The Challenge & What We Built

AKD Media runs performance marketing campaigns across multiple clients using Meta Ads, Google Ads, LeadProsper, and CaseOff. With data scattered across four separate platforms, getting a unified view of spend, revenue, and profit per client required hours of manual work every day.

We designed and implemented a fully automated ETL pipeline using Google Cloud Functions and Python to extract data from all four sources, transform and centralise it in BigQuery, and surface it through live Looker Studio dashboards — giving AKD Media instant visibility into what's working and what's not.

Core problem solved: Four data sources, zero unified reporting. This pipeline aggregates everything automatically — daily spend, revenue, profit, and ad-level performance — all in one place, updated every 6 hours, with zero manual work from the marketing team.

Multi-Source Extraction

Pulls data from 4 APIs automatically — Meta, Google, LeadProsper, CaseOff.

BigQuery Warehouse

Centralised raw and transformed data tables — queryable in real time.

Cloud Functions

Python serverless functions — triggered every 6 hours, zero maintenance.

Looker Dashboards

Interactive reports on spend, revenue, profit, and ad performance per client.

The ETL Pipeline — How Data Flows

Data flows from four source systems through Google Cloud Functions, into BigQuery raw tables, through SQL transformations, and finally into Looker Studio dashboards — fully automated, every 6 hours.

Source Systems
Meta Ads API
Spend, impressions, clicks, conversions per client
Google Ads
Native BigQuery connector — spend, clicks, conversions
LeadProsper
Lead data — ID, client ID, generation timestamp
CaseOff API
Conversion status, lead timestamp, client info
Pipeline Steps
01
Data Extraction

Cloud Functions trigger every 6 hours — pulling fresh data from Meta Ads API, LeadProsper API, and CaseOff API using Python.

02
Data Transformation

Python scripts inside Cloud Functions clean the data — date formatting, deduplication, field normalisation — before loading to BigQuery.

03
BigQuery Load

Cleaned data loaded into raw BigQuery tables — leadprosper_raw, meta_ads_raw, google_ads_raw, caseoff_raw.

04
SQL Aggregation

BigQuery SQL views aggregate daily spend, revenue, and profit per client — creating the daily_spend_revenue_profit view.

05
Business Logic Tables

Joined datasets from all four sources create complete client-level and ad-level performance tables for reporting.

06
Looker Connection

Looker Studio connects directly to BigQuery — querying the transformed tables and views to power live dashboards.

07
Dashboard Reports

Interactive Looker Studio dashboards show daily spend, revenue, profit, and ad-level performance — filterable by client and date range.

08
Actionable Insights

Marketing and finance teams get real-time visibility into ROI, campaign effectiveness, and lead conversion — zero manual reporting.

Four Phases of Delivery

Phase 1 — Extraction
· LeadProsper Cloud Function (Python)
· Meta Ads Cloud Function (Python)
· CaseOff API Cloud Function (Python)
· Google Ads native BigQuery connector
· Triggered every 6 hours automatically
Phase 2 — Transformation
· Raw tables: 4 per source in BigQuery
· Date formatting & deduplication
· Daily spend & revenue aggregation
· Profit = Revenue − Spend calculation
· daily_spend_revenue_profit view
Phase 3 — Business Logic
· Daily spend, revenue & profit table
· Ad-level performance view per client
· Impressions, clicks, conversions joined
· All 4 sources joined by client ID
· Complete dataset ready for reporting
Phase 4 — Dashboards
· Looker Studio → BigQuery connection
· Daily spend, revenue & profit report
· Ad-level performance dashboard
· Time series trends per client
· Filterable by client, date, platform

What the Dashboards Track

Daily Spend, Revenue & Profit

Track spend, revenue, and profit for each client on a daily basis. Monitor profitability and assess ad campaign ROI in real time.

Ad-Level Performance

CTR, conversion rate, spend, and impressions for every ad campaign — identify high-performing ads driving the most revenue.

Lead Performance

Number of leads per client, conversion rate from leads to paid subscriptions, and lead source attribution across all platforms.

Revenue Trends

Time series charts showing revenue and spend trends over time — enabling data-driven budget allocation decisions per client.

Cross-Platform Attribution

Unified view of Meta and Google Ads performance side by side — compare platform ROI and reallocate budgets accordingly.

Client Profitability

Per-client profit and loss calculated daily — gives account managers clear visibility into which clients are most profitable.

What This Pipeline Delivers

Optimised ad spend — marketing teams can track ROI per campaign in real time and adjust budgets based on live performance data, not weekly reports.

Improved lead prioritisation — sales teams can identify high-value leads from LeadProsper and CaseOff data and focus conversion effort where it counts most.

Real-time insights — automated 6-hour refresh means decision-makers always have the latest spend, revenue, and profit data without waiting for manual reports.

Zero manual reporting — hours of daily data consolidation eliminated. The entire pipeline runs automatically, with dashboards always up to date.

Scalable architecture — adding a new data source or client requires only a new Cloud Function and table, with no changes to the reporting layer.

Technologies Used

Python
ETL scripting language
Cloud Functions
Serverless extraction
BigQuery
Cloud data warehouse
Looker Studio
BI dashboards
Meta Ads API
Ad performance data
Google Ads
Native BQ connector

What Was Built & Applied

Python
Google BigQuery
Google Cloud Functions
Looker Studio
Meta Ads API
Google Ads API
LeadProsper API
CaseOff API
ETL Pipeline Architecture

Want a centralised analytics pipeline for your marketing data?

From multi-source ETL to BigQuery warehousing and Looker dashboards — we build data pipelines that give you real-time ROI visibility across every client and campaign.

Start Your Project →