Split ad set targeting and publish in Meta Ads Manager

A small travel business's ad manager had Claude Code with Claude in Chrome read results, split location targeting across two ad sets and publish in Meta Ads Manager.

Done withClaude CodeClaude in ChromeinMeta· Nov 17, 2026

What they did

The author runs ads for a small travel business. They pointed Claude Code, driving their own logged-in Chrome through Claude in Chrome, at the company's Meta Ads Manager account. The jobs were ordinary ad work: pull results for chosen date ranges, divide the location targeting between two ad sets, publish the changes, and gather the links to the resulting ad posts for the rest of the team. Partway through, the author changed how the agent worked the page: instead of taking screenshots to decide where to click, it read the page as text and through the accessibility tree, found controls by their name and clicked them by reference.

How it went

Screenshots were the weak point. In one session the screenshot call hit its 30 second timeout six times on the heavy Ads Manager editor. Reading the page as text kept working: the agent located the Remove button for one location by name, clicked it, read the targeting list back to check it, and published. The author then packaged the approach as an open-source Claude Code plugin with recipes for other dashboards. Their own benchmark on five public pages found the text read used 2.6 to 37 times fewer tokens than screenshots.

Worth knowing

Dumping the whole accessibility tree can cost more tokens than a screenshot on large pages (10k to 70k), so read the text first and then search for one element. The author built in a confirmation step before anything that spends money or goes live. Only the Meta Ads Manager recipe was tested live; the others were waiting for testers.

Try it

With Claude Code· 9 parts to fill in

Use my logged-in Chrome to work in [Meta Ads Manager or another ads dashboard] for [ad account]. Read the page as text or through the accessibility tree rather than screenshots, and find buttons by their name. First report results for [campaign] from [start date] to [end date]. Then split the location targeting so [ad set A] covers [locations] and [ad set B] covers [other locations]. After each edit, read the targeting back as text to confirm it. Stop and show me the exact changes before you publish or change any budget. Once I approve and it is live, list the links to the ad posts.

Square brackets are the parts to fill in. The prompt is ours; the story is theirs.

Where they said it

Related