AdPilot
A bilingual tool for preparing and auditing Google Ads app campaigns. Code calculates the audit, Gemini adds structured recommendations, and a person approves, edits or rejects each one before exporting a report.
- Type
- Prototype / MVP
- Year
- 2026
- Status
- Completed
- Source
- Public on GitHub
How data moves through it
- Campaign data or CSV
- Audit in code
- Gemini guidance
- Human review
- Report
The problem
Advertising advice from a language model is hard to trust on its own. AdPilot calculates the numbers in code, uses the model only for guidance and keeps a person in charge of every recommendation. It never changes the ad account.
What I built
- React, TypeScript and Vite front end with TanStack Query, i18next, Zod and Recharts.
- FastAPI, SQLAlchemy 2, Alembic and PostgreSQL back end with HTTP-only cookie sessions and ownership checks on every record.
- A deterministic engine for CTR, CPC, conversion rate and CPA that handles division by zero.
- Structured Gemini output with a clearly labelled local fallback when there is no key, a timeout or invalid JSON.
- Strict CSV import, synthetic demo data that is always marked as such, and report export.
- Playwright tests at phone, tablet and desktop sizes, and one production image that serves both the app and the API.
Architecture
A modular monolith with separate front-end and back-end development containers. The Gemini key lives only on the server and never reaches the browser, the database or the logs.
Result
A working MVP with lint, unit and end-to-end tests and a Docker production image. The source is public.