AdShield Intelligence: The Fraud-Proof Campaign Optimization Engine
Inspiration
Digital marketers spend over 80% of their work week manually pulling reports across Google, Meta, and LinkedIn while losing up to 30% of their ad spend to silent bot traffic and click fraud. We built AdShield Intelligence to solve both problems: merging Agentic AI, ML Cyber Defense, and Zero-Knowledge Blockchain Proofs into a single fraud-proof growth platform.
What it does
AdShield Intelligence is an autonomous marketing analytics and fraud prevention engine that:
- Aggregates Multi-Channel Data: Consolidates live GA4, Meta, and LinkedIn metrics into a single real-time dashboard.
- Auto-Calculates Key Metrics: Tracks performance metrics continuously: $$\text{ROAS} = \frac{\text{Revenue}}{\text{Ad Spend}} \qquad \text{CAC} = \frac{\text{Total Cost}}{\text{Conversions}}$$
- Intercepts Ad Fraud (ML): Uses real-time anomaly detection to catch bot attacks using Z-score deviations: $$Z = \frac{x - \mu}{\sigma}$$ If live CPC or traffic ($x$) deviates by $Z > 3.0$ from the moving average ($\mu$), an automated defensive circuit-breaker triggers.
- Predicts & Reallocates (AI): Ranks ad copy variations and auto-reallocates budget to high-performing campaigns.
- Verifies On-Chain (ZK-Blockchain): Logs cryptographically hashed proofs ($\text{keccak256}$) of spend and audit reports on-chain without exposing raw financial data.
How we built it
- Frontend: Next.js 14 (App Router), TypeScript, TailwindCSS, Recharts, and RainbowKit/Wagmi for Web3 wallet connectivity.
- AI & Machine Learning: Python FastAPI microservice with Scikit-Learn (Isolation Forest for anomaly detection) and LangChain + OpenAI for creative scoring and agentic recommendations.
- Blockchain Layer: Solidity smart contract (
AdSpendRegistry.sol) on Polygon Amoy testnet for immutable audit logging.
Challenges we ran into
- Schema Normalization: Unifying messy, inconsistent data formats from Meta, Google, and LinkedIn into a single standardized schema.
- Privacy-Preserving On-Chain Verification: Structuring Zero-Knowledge proofs so ad spend and ROAS could be verified on a public ledger without exposing customer PII or raw company revenue.
Accomplishments that we're proud of
- Successfully intercepting simulated bot traffic in real time with our ML model and preventing wasted ad spend.
- Building a working end-to-end Web3 + AI system that seamlessly combines modern marketing UI with on-chain cryptographic proofs.
What we learned
- Cybersecurity is a marketing issue: Bot traffic isn't just an IT headache—it directly destroys campaign ROI if left unchecked.
- Agentic AI drives real action: Turning raw data charts into autonomous, actionable AI recommendations saves teams hours of manual analysis every week.
What's next for AdShield Intelligence Platform
- Live API Integrations: Transition from simulated webhook pipelines to full OAuth production integrations with Meta Ads, Google Ads, and TikTok.
- Automated Smart Contract Bounties: Enable automated smart-contract payouts for affiliate marketers based on ZK-verified conversion proofs.n
Built With
- docker
- fastapi
- langchain
- polygon-amoy-testnet
- rainbowkit
- react
- recharts
- tailwind
- typescript
- viem
- wagmi

Log in or sign up for Devpost to join the conversation.