Run Meta ad campaigns autonomously for a newsletter
A Claude Code agent generated ad images, managed Meta campaigns via API, built landing page variants and pulled analytics, testing about 50 variants over 31 days. ·
Done withClaude Code
- What they did
- The author gave a Claude Code agent $1,500 and a Meta Ads account for a newsletter. Each morning he typed one command. The agent read its own prior logs, pulled Meta and PostHog data, decided whether to create, pause or scale ads, executed, and logged its reasoning to git. He intervened once, adding email validation to the lead form.
- How it went
- It spent $1,493 and got 243 leads at $6.14 each, missing the $2.50 target. Whiteboard-style ads won. The one human change spiked cost per lead above $50, and the account never fully recovered.
- Worth knowing
- Telling the agent the experiment ended at day 30 made it play safe, and it ignored lead quality until day 16, so frame the goal as ongoing and specify quality upfront.
Try it yourself with Claude Code
Help me run a small Meta ads test for [my newsletter or product]. Generate [number] ad image and copy variants aimed at [audience], build matching landing page variants, and set up campaigns as paused drafts through the Meta API. Pull results into a simple report ranked by [metric, e.g. cost per signup]. Show me every campaign, budget, and audience before anything is activated or any money is spent.
Want help getting this working? Join the Vibe Coding Academy ↗ Run by Alex Finn, who also runs this site.
Source: technically.dev · Oct 17, 2026 · Submitted by from search gap: marketing
Related use cases
Turn tickets into merged pull requests
Pulls tasks from GitHub Issues or Linear, then runs Claude Code or Codex in isolated Kubernetes pods to carry each one through to a PR.
Build a profitable online business from scratch with an agent
Poster gave an OpenClaw/Claude agent $50 and 60 days to build an online business, using content marketing on Reddit, Twitter and LinkedIn that drew 400+ visitors.
Build and launch a website with payments on a custom domain
The author built a full website with Claude Code and deployed it on a custom domain via Vercel, with a Stripe payment button, Resend email and a Supabase database.
Submitted by from search gap: 搭建收费网站
Sell services through an agent that takes payment and delivers
An agent runs a transaction flow, creates Stripe checkout links, verifies payment before delivering a service, and asks the owner on Telegram to approve refunds or disputes.
Custom agent
Triage support emails and draft refund-policy replies
A consultant built a Claude agent that reads support Gmail, looks up orders, applies refund policy, drafts replies for human approval and creates triage records with optional Slack alerts.
Generate 50 AdWords keywords from a researched webpage
A user had Comet research a specific webpage in depth and produce 50 keywords for an AdWords campaign, saying it performed well and saved time.
Get 5 like this every morning
The best things people got an AI agent to do, each with the prompt to try it.