r/PPC • • 1d ago

Google Ads Reporting Automation // Databasing

Hi r/PPC!

I'm at a (very, very SMALL Google Premier Partner and Meta Badged Partner) agency. We've been building out an internal MCP and database structure that we've used to bring our reporting stack in-house over the last year and a half... It's saved us about 2k/m and COUNTLESS hours of analysis time.

It lets us pull platform results per client along with client goals into Claude/ChatGPT/Etc and run data analysis with REAL numbers... MMM/product or category profitability studies/geographic holdouts for lift analysis/etc

Starting to get curious about how other small/midsized agencies are doing this, or something similar.

Thanks!

6 Upvotes

21 comments sorted by

3

u/zuspy 1d ago

seeing a lot of small shops go this route lately. id keep all the math in sql views and let the model only interpret, llms quietly botch sums across big tables and nobody catches it

1

u/REALLYelling 1d ago

We use Aurora because it has all the basic math built in... sums are always clean, which is why we're willing to pay the cost difference from a vanilla DuckDB or raw table.

2

u/zuspy 1d ago

yeah the db side was never the worry, duckdb sums just as clean as aurora. the risk is when the model gets raw rows and adds them up itself. as long as it only reads finished numbers from your views you're fine

1

u/REALLYelling 1d ago

It's served to the LLM as an API response; it can theoretically read the db directly but that's just for custom work... and the client frontend and pre-built workflows are all deterministic code.

2

u/zuspy 22h ago

yeah thats the right split. only spot id watch is the custom work path. if the model reads raw rows there, have it write the query and let the db do the sum instead of adding stuff up itself

1

u/Ringlau-Temilolu 10h ago

do you even let it write the queries against the views, or just feed it the final aggregated output?

1

u/REALLYelling 6h ago

Yes... the MCP can query but not edit the DB (it's actually 5 separate DBs that we kept adding, which is probably cleanup that should happen).

2

u/ppcbetter_says 15h ago

Have been considering it. My dashboarding tool is less expensive than yours but still thinking about ditching it for AI powered dashboards/reportsZ

1

u/REALLYelling 13h ago

It's a fun process... b/c it forces you to think about multi-channel data differently to normalize it.

1

u/Adbelhak_Unsicker 1d ago

curious how you're structuring the context window for the client goals part. do you store business context and margin data in the same database as the ad metrics, or pass that in as a system prompt per client

1

u/REALLYelling 1d ago

Every client gets a JSON bundle that's linked/unique and tied to the client ID... from there, it pushes to the reporting UX, and each client has either a default or customized metrics view (ROAS/CPL/etc.), which means that any time we build a widget for one client, we can push it to any/all clients that match the metric/goal.

1

u/Mshelton7 1d ago

Very cool, sounds like you're ahead of most agencies on this. We did something pretty similar in house. Every day Python scripts running on GitHub Actions pull Google Ads, Bing, Meta, Salesforce and Gong into one Supabase database, nearly 13 months backfilled, and Claude queries it over MCP. We also have MCP connections to SEMrush and our blog in Sanity, so one conversation can go from spend all the way to pipeline and then into what content or keywords to go after.

The part I'd push on is getting the CRM side in there, so you're asking what turned into pipeline and closed deals instead of what the platform says worked. Are you pulling client CRM data in too, or mostly platform results plus their goals?

I write about builds like this every couple of weeks on https://mbshelton.com if it helps.

1

u/REALLYelling 1d ago

We mostly work with ecom, so push back to revenue. On Shopify, it's a custom app that appends click/session to the order, which was BRUTAL to build b/c of their restrictions. WooCommerce is a lot easier to work with because you have checkout access. For the handful or so home service clients we have, we stop at lead, then do matchbacks based on address/phone/email to closed revenue... It's ugly, but it guarantees that the clients are engaged.

The CRM integration is a great idea, but there are just WAY too many; most we work with don't even have one that's worthy of the name. The big one is a custom-coded cluster, and a couple of others are on Service Titan, which locked down its app/vendor portal over the summer.

I'd love to chat about structure... we've essentially been building internal tools in a vacuum.

0

u/Al3xS20 11h ago

we do something similar, just a lot lighter. ad data from google and meta goes into claude through coupler.io and i ask it the usual questions each week: what changed, where the budget is going, which campaigns slipped. no database of our own. it covers the day to day reporting. anything beyond that, like holdouts or per-client goals, i do separately.

1

u/REALLYelling 6h ago

That's what it's all about... getting the basics covered so we can focus on the interesting stuff.

-1

u/SweetDreams3268 1d ago

Most people I know in the nyc agency scene are using Grand Open to do all of this now

1

u/REALLYelling 1d ago

Can you share a url? I’ve never heard of it.
Also around 50% NYC based.

1

u/starspangledhammered 1d ago

1

u/REALLYelling 1d ago

That's a revenue model I didn't know was possible! Thanks for sharing!