Manage Google and Meta ads with Claude Code or GPT's Codex CLI
Idea + starter prompt, not run by us yet
For: PPC marketers who repeat the same weekly account checks for clients
A PPC marketer built scripts on Google's own APIs and gave each client a folder with ads, analytics, Search Console, CRM and sometimes Meta data. The agents pull reports on search terms, spend and conversions, then draft negatives, responsive search ads and tracking audits. He checks claims in the ad platform and approves each staged change.
Steps
- Set up API access first: a manager account, OAuth credentials and a Google Ads developer token. Keep them in your own config, never in a chat.
- Give each client a folder with exported reports and notes, so the agent works from files and not from memory.
- Ask for drafts only: negative keywords, ad copy and tracking audits. Check every claim in the platform's own screens.
- Approve staged changes one at a time. The author trusts only outputs backed by scripts, files and cross checks, because the agent can hallucinate.
- After a tracking change, wait 48 hours before trusting the data that follows, as the author does.
Starter prompt
Help me test an ads review using synthetic reports in [test folder]. Use invented client names and aggregate figures only, with no customer records or contact details. This is read-only: do not change, pause or create anything in any ad account. First show me your plan: which files you will read and which checks you will run. Then look for wasted search terms, tracking problems, and CRM data that makes a good campaign look bad. Draft negative keywords and new ad copy as suggestions in a file. For each claim, name the file and row it comes from so I can check it. If you can't back something up, say so. Do not open other client folders. Don't ask for passwords or tokens.
Original post: Reddit · found via agentusecases.ai. Written up in our own words. We haven't run it, so test it on made-up data first.