Steps 1 to 8 typed as written and run · 27 Nov 2026

The AI ads playbook
with Claude Code

Eleven steps for a marketer who does not know where to start: see what competitors run, find what spreads in your category, write a brief, make image ads and a short video, put them in your account paused, and decide what to keep. Each step is a prompt to type, what comes back, what to check, and what to do next. We typed steps 1 to 8 as written into Claude Code; steps 9 to 11 are marked Method.

11steps, one prompt each
8run as written
$2.37metered on treg.to, steps 1 to 8
0lines of code
Start here Find your step

How do you make ads with Claude Code?

To make ads with Claude Code, you describe each job in a prompt and the agent does the work in a folder on your computer: it pulls your competitors' ads from the public ad libraries, finds the videos that spread in your category, reads the pages those ads sell from, writes a one-page brief, and makes image ads and a short video from your product photo. You approve each step. The ads go into your ad account paused, through Meta's own connector, and you switch them on. This playbook is the eleven prompts, in order, with what came back when we ran them.

New to this? Start at step 0. Already running ads? Pick your problem and jump in.

›
agent idle$0.00
An abbreviated replay of the 27 Nov 2026 run. The prompts are shortened here; the full ones are in each step. The meter is what treg.to charged, running total.

Start here:
which of these sounds like your week?

We read 132 Reddit threads about paid social, most from r/FacebookAds and r/PPC, June to November 2026. The same problems repeat. Tick the ones you recognise and the playbook tells you where to start. If none fits yet, start at step 0.

StepsContents
Step 0 · Start Setup

How do I start running ads with Claude Code?

You need a product, Claude Code and ten minutes. No code. Every step after this one is a prompt you type; it ends in a file, and the next step reads that file.

  1. Install Claude Code and open it in an empty folder.
  2. Set up treg.to. Paste the line below into Claude Code and follow it. A new verified account gets $1.00 of credit, once, which covers steps 1 to 6.
  3. Add the two skills this playbook uses, make-ugc and rea-growth, with the second line.
  4. Save four lines about your product as product.md. Write “I don’t know” for competitors if you do not; step 1 finds them.
paste into Claude Code
set up treg — https://treg.to/llms.txt
terminal
npx skills add superdesigndev/treg
worksheet · product.md
What: [what you sell, in one line]
Who buys it: [who, and when they need it]
Price: [price and any offer]
Competitors: [three names and websites, or "I don't know"]

The example in every step is Tidewell, a brand we made up: a zero-sugar electrolyte drink mix. Its pack, prices and offers are invented. The competitors in the runs are real brands, shown here as Brand A, B and C. Swap in your own names wherever you see [brackets].

NextType the prompt in step 1.
Step 1 · Competitors Run 27 Nov · $0.01

How do I find who advertises in my category?

SymptomYou can name one or two competitors. You do not know who else is buying the same customers.

You have. product.md from the start page.

type this
Using treg, search the Meta ad library for active US ads matching "[your category word]". Four pages. Group by advertiser: ads in the sample, days since the oldest started, the page it links to. List the ones that do not sell what I sell separately. Do not drop them. Save as advertisers.md.

You get. advertisers.md: a table of who is advertising. Ours had 59 ads from 29 advertisers, in two and a half minutes.

Ads in four pages59
Advertisers29
Sell a drink mix15
Do not: retailers, bottled drinks, others14
27 Nov 2026, the word “electrolyte”. Meta reported 11,188 matching ads, so four pages is the top of the list, not the market.

Check.

  1. Some rows are not competitors. One word matches many things; ours matched pharmacies, a food delivery app and bottled drinks.
  2. It is a sample. The advertiser with the most ads in four pages is not the biggest spender.
NextPick three names and write them in product.md.
treg doesSearches the Meta ad library by keyword and country, priced per page.
You decideWhich three are your real competitors.

Go deeperCompetitor ad researchAds a competitor is running nowMeta ad endpoints and pricesKeywords a competitor bids on

Step 2 · Ad libraries Run 27 Nov · $0.06

How do I get Meta, Google, TikTok and LinkedIn ad library data into Claude Code?

SymptomYou open each ad library in a browser, scroll, screenshot, and lose it by next week.

You have. Three competitor names and their websites.

type this
Using treg, pull active US ads for [brand 1, site], [brand 2, site], [brand 3, site]. Meta ad library, Google Ads Transparency Center, TikTok ad library, LinkedIn ad library. Stop at four pages each and $0.10. Show one table: returned, total, what is missing. Then save every ad as swipe-[today].csv with library, ad id, brand, days since start, format, headline, full copy, call to action, landing page, media link.

You get. swipe-[today].csv: one row per ad. Ours had 292 ads, in 4 minutes, for $0.06.

BrandMetaGoogleTikTokLinkedIn
Brand A60 of 11267 of 127no US library0
Brand B60 of 16088 of about 2,000no US library2, no copy
Brand C12 of 121 of 14no US library0
Returned of total, three electrolyte brands, 27 Nov 2026. Two were part collected at four pages. On Google, ads not shown in the last three days were left out.

Check.

  1. Returned against total. Four pages is a sample; write both numbers down before you read an ad.
  2. The advertiser on every row. Searching by name returns other companies with similar names.
  3. TikTok. Its ad library does not cover US ads, so that column comes back empty. Step 3 covers TikTok another way.
  4. Blank copy. Google gives dates, format and an image, and no ad text. Some Meta catalog ads carry template text where the copy should be.

Free first. All four libraries are free in a browser, and that is enough for one brand, once. Meta’s own Ad Library API returns commercial ads only when they were shown in the EU. For US ads saved to a file every week, see the ways compared.

NextStep 3 finds what spreads. Step 4 reads these ads closely.
treg doesReads four ad libraries from one prompt, at about $0.002 a page.
You decideHow many pages. More pages cost more and take longer.

Go deeperAds a competitor is running nowGoogle ad endpointsTikTok ad endpointsLinkedIn endpointstreg.to and Apify comparedWays to get ad library data

Step 3 · Viral Run 27 Nov · $0.11

How do I find the viral videos and hooks in my category?

SymptomYou scroll TikTok for ideas and call it research. Nothing is counted.

You have. Your category in two or three keywords.

type this
Use the make-ugc skill, research part only. Pull the trending TikTok and Instagram videos for [your keywords]. US, English. For each top video: link, views, likes, shares, creator, brand or creator account, marked as an ad or not. Write hooks.md: the opening lines that repeat in the top videos and are missing from the weak ones. Stop there. Make no image or video. Cap $0.50.

You get. hooks.md: the top videos with links, and five or six opening patterns with counts. Ours read 129 TikTok videos and 23 reels, in six and a half minutes, for $0.11.

What the video doesTop 20 videosWeak 29
Opens on a routine or a moment in the day; the product comes later92
No speech: the drink being made, with a label of a few words12not counted
Names or shows the product in the first three seconds418
Carries a paid partnership label326
TikTok, electrolyte drink mix, last 30 days, 27 Nov 2026. 49 videos kept from 129 pulled. The last row is the catch: weak openers and paid shop posts travel together, so the data cannot say which one holds a video back.

Check.

  1. Big views with few likes is usually paid reach. Rank by shares and like rate, not views.
  2. It reads captions and transcripts. It does not watch the videos. Open the top five yourself.
  3. Organic is not paid. A hook that spreads for a creator is a guess for an ad until you test it.

One competitor’s own account. To rank a single brand’s posts, type: “Use the rea-growth skill in content mode. Target: [competitor site]. Channels: TikTok and Instagram. Cap $1.” Ours ranked 120 posts in 8 minutes for $0.01. For a large brand the top posts were mostly partnerships and giveaways: useful to know, hard to copy.

NextKeep hooks.md. The brief in step 6 reads it.
treg doesSearches TikTok and Instagram by keyword and returns views, likes, shares and transcripts.
You decideWhich patterns fit your product. The count does not know your customer.

Go deeperThe make-ugc skillThe rea-growth skillSocial searchSocial trend researchTikTok endpointsInstagram endpointsTikHubScrapeCreatorsFind creators in a niche

Step 4 · Teardown Run 27 Nov

How do I tell why a competitor’s ad works?

SymptomYou saved 200 ads and see no pattern.

You have. swipe-[today].csv from step 2.

type this
From the saved pull, take [brand]'s three oldest video ads on Meta. Remove duplicate copy first. For each: take a frame every three seconds and describe the first frame, the words on screen, the offer, who is on camera. Then list what repeats across all three. Save as teardown.md.

You get. teardown.md: three ads taken apart frame by frame, and what they share. Ours took 5 minutes and no treg charge. In all three ads the product was in the first frame, the brand was readable on the pack, and no price was shown.

Check.

  1. Say long-running, not winning. A start date does not show profit, and an old ad can be neglect.
  2. One long run means little. The same idea in several live versions, with the same offer, means more.
  3. It reads frames, not sound. Listen to the opening yourself.
NextNote the format and the offer. Step 5 checks the offer.
treg doesSupplies the media link for each ad. Claude Code reads the frames on your machine.
You decideWhat to borrow. Take the structure. Never rebuild their ad with your logo: the library lets you look, and gives you no right to the creative, the actor or the music.

Go deeperWorkflow: competitor Meta ads as a creative packCompetitor ad research

Step 5 · Offer Run 27 Nov · under $0.01

What is the offer behind the ad?

SymptomYou copy the ad and miss the price, the bundle and the shipping line that make it convert.

You have. swipe-[today].csv from step 2.

type this
For each brand in the saved pull, find the page most of its ads link to. Read it. Give price, pack size, subscription offer, shipping line. If a link is dead, say which page you read instead. Then list three gaps [my brand] could use. Save as offers.md.

You get. offers.md: a price and offer table for each competitor, and three gaps. Ours read three pages in 5 minutes, for under a cent. Per stick, the three brands charged $1.20 to $1.56 for a single order and $0.99 to $1.30 on subscription.

Check.

  1. Sale weeks. Ours ran in Black Friday week, with a 30% code live on one site.
  2. Blocked pages. One site refused to load; Claude said so and named the page it read instead.
  3. Compare like with like: price per unit, on the pack size most ads link to.
NextYou now have hooks.md, teardown.md and offers.md. That is the research.
treg doesReads a web page for a fraction of a cent. A dead link is free.
You decideWhich gap is true for your product.

Go deeperFree web access for agentsWeb reading endpoints

Step 6 · Brief Run 27 Nov · $0

How do I write a creative brief with Claude Code?

SymptomYou go from a folder of competitor ads straight to making things, and every ad says three things at once.

You have. product.md, offers.md, hooks.md.

type this
Read product.md, offers.md and hooks.md. Write brief.md, one page: who the ad is for and the problem it solves, then three angles. For each angle: the hook pattern it borrows from hooks.md, the format (static or video), the opening line, and the one claim it makes. Use only facts in product.md. No health claims, no invented reviews or customers. Mark the angle to test first and say why. Then stop.

You get. brief.md: three angles, one marked first. Ours took under a minute.

AngleFormatOpening lineOne claim
A. The morning, then the stick (first)Video“Pack my bag with me, I train before work.”Zero sugar
B. The drink being madeVideo, no speech“citrus salt, before training” on screenSingle sticks
C. The price as a numberStatic“99 cents a stick.”99 cents a stick in a 30 box
The brief for Tidewell, our made-up example brand, 27 Nov 2026. It kept competitor prices out of the ads because they are not in product.md.

Check.

  1. Every claim is in product.md. If the brief says something you did not write, delete it.
  2. One angle is one person with one problem. Not three benefits in one ad.
  3. You pick. Claude ranked the angles; you know the customer.
NextThe static angle goes to step 7. The video angle goes to step 8.
treg doesNothing here. This step reads your own files.
You decideThe claims. Paste 20 of your own reviews into product.md first: angles from customers’ words beat angles from competitors’ ads.

Go deeperPull your reviews from Trustpilot, Yelp and TripadvisorThe GTM engineering playbook

Step 7 · Image ads Run 27 Nov · $0

Can Claude Code make static image ads from a product photo?

SymptomYou need image ads this week. A freelancer takes days, and AI tools redraw your pack wrong.

You have. brief.md and a product photo saved as product.png.

type this
Here is my product photo (product.png). From brief.md, take the static angle and write five headlines, using only my facts. Show me the five lines. When I approve, make one square ad. Keep the pack as it is. No reviews, no ratings. Show me, then wait.
then
Approved. Make the first ad.
then
Good. Make the other four.

You get. Five square image ads in a folder. Ours took 2 minutes and cost nothing: Claude Code set each headline over our own photo, so the pack is the real one.

Example image ad 1 for the made-up brand TidewellExample image ad 2 for the made-up brand TidewellExample image ad 3 for the made-up brand TidewellExample image ad 4 for the made-up brand TidewellExample image ad 5 for the made-up brand Tidewell
The five ads from the 27 Nov 2026 run, unedited. Tidewell is made up. The small print on our demo sticks is misspelled in the photo itself, and Claude pointed it out before making the first ad.

Check.

  1. Every word on the ad, and the small print on your pack.
  2. One first, then the batch. Fix the layout once, not five times.
NextGo to step 9.
treg doesImage models at about $0.03 an image, when you ask for a scene: “use an image model, on a kitchen counter”.
You decideThe words. You write the claim; the model draws the layout.

Go deeperImage and video models on treg.toImage models and prices

Step 8 · Video Run 27 Nov · $2.19

Can Claude Code make a UGC-style video ad?

SymptomA creator video costs hundreds of dollars and a week, and you do not know yet if the angle works.

You have. brief.md, hooks.md, product.png.

type this
Use the make-ugc skill. From brief.md, take the video angle marked first. Make a still of the opening frame with my product (product.png) and show me. Write the script: 8 seconds, the opening line from the brief, facts from product.md only, no personal experience, no health result. Tell me the price. Wait for my yes before any video. Cap $3.
then
Approved: the still, the script and the price. Make the clip.

You get. One 8-second vertical clip with sound. Ours took 12 minutes and $2.19: two stills at $0.025 each and one take at $2.14. Claude redid the still once on its own, because the first had a tripod in shot.

One frame per second from the 8-second example clip: an AI-generated presenter packs a gym bag and holds up a Tidewell stick
One frame per second from the 27 Nov 2026 clip. The presenter is AI-generated and the brand is made up. Claude checked the frames and a transcript; it cannot hear the voice, so a person still has to play it.

Check.

  1. The still, before you pay for video. Our take cost about 85 times a still.
  2. Play the clip with sound. Listen for your brand name.
  3. Count the hands and the products in every second.

What it is. A cheap test of an angle, not a finished ad. Advertisers who tested both say the AI version finds the angle and a filmed remake lasts longer.

NextGo to step 9.
treg doesVideo models priced per clip, quoted before the call.
You decideThe script. No invented testimonial, no health result. Label an AI-made person as AI. TikTok requires it for realistic AI content. Meta requires it only for political ads.

Go deeperThe make-ugc skillVideo models on treg.toVideo models and pricesreAPI

Step 9 · Launch Method

How do I connect Claude Code to my Meta ad account safely?

SymptomYou are afraid an agent will spend money, change a budget or get the account restricted.

You have. Your ads, and a Meta ad account you can log in to.

Set up once. Connect Meta’s own ads connector. It is made by Meta and free. Search “Meta ads AI connectors” in Meta’s Business Help Centre and follow it. It is an open beta, and not every account has every tool yet.

type this
Using the Meta ads connector, read my account first and change nothing. Show me my campaigns and what each spent in the last 7 days. Then write a plan: one new campaign for testing, one ad set, my five image ads and one video, [$X] a day. Show me the plan. When I approve, create everything paused. Turn nothing on.

You get. A plan, then a paused campaign you can open in Ads Manager. We have not run this step ourselves; it follows Meta’s documentation and the open-source ads skills.

Check.

  1. In Ads Manager, before you switch it on: the Page, the link, the budget, the country, each ad’s text.
  2. New ads sit in their own ad set. Next to an old winner they get no spend.
  3. In Meta Business settings, block the actions you do not want and cap the budget the connector can set.

Google. Google’s own connector reads your account. It cannot create or change campaigns, ads, budgets or bids, so upload there by hand.

Is it safe? Meta’s help page says using its connector alone does not put an account at risk. A few advertisers report restrictions after connecting an agent, and none has shown the cause. Start read-only for a week.

NextRead first. Then a plan. Then paused. You switch it on.
treg doesNot the best route here. Meta’s connector is free and official, so use it.
You decideWhen the ads go live, and every budget. The agent never changes a budget or a bid without your yes.

Go deeperMeta: manage ads from an AI agenttreg.to in Claude Code

Step 10 · Keep or kill Method

Which ads do I keep and which do I kill?

SymptomMeta puts most of the budget on one ad, results swing day to day, and you kill ads on a feeling.

You have. Ads that have run for at least four days.

type this
Using the Meta ads connector, read only. For each ad in the test campaign over the last 7 days: spend, purchases, cost per purchase, click rate. My target cost per purchase is [$X]. Sort into: keep, kill, too early. "Too early" means it has spent less than twice my target. If tracking looks broken, stop and tell me. Change nothing.

You get. Three lists: keep, kill, too early. We have not run this step ourselves.

Check.

  1. Tracking first. If purchases are zero everywhere, the ads are not the problem.
  2. Most of the budget goes to one ad. The rest are too early, not losers.
  3. “Twice your target, and not before four days” is what media buyers do. It is not a Meta rule, and they disagree on the number.
NextPause the kills yourself. Move a keeper to its own ad set. Write one line in results.md: which angle won.
treg doesNothing here. Your results come from your own account.
You decideThe target cost, and every pause.

Go deeperYour own campaign performance, on your own key

Step 11 · Weekly Method

What should I do every week?

SymptomA winner fades and nothing is ready to replace it.

You have. Last week’s swipe file, brief.md, results.md.

type this
Pull the same three brands again and save as swipe-[today].csv. Compare with last week's file: which ads are new, which are not seen any more. Then read results.md and write next week's brief: keep the angle that won, replace the one that lost with a new one from hooks.md.

You get. What changed at your competitors, and a new brief. We have not run this step ourselves.

Check.

  1. “Not seen” is not “stopped”, unless both pulls were complete.
  2. Do not make new ads because a week went by. If an ad still hits your target, leave it.
NextBack to step 7 with the new brief.
treg doesThe same pull as step 2, for a few cents. treg.to does not schedule; your agent or you start it.
You decideWhether anything needs replacing. Make new ads when cost rises while the same people keep seeing the old one.

Go deeperStep 2: the pullMore workflowsPricing

Appendix A

Ways to get ad library data into Claude

Read on 26 Nov 2026 from each provider’s own pages. We ran only the last row ourselves. Prices change; check before you choose.

WayWhat you getCostThe catch
The ad libraries in a browserEvery ad, with its creativeFreeBy hand. Nothing saved
Meta’s ads connectorA search of the Meta ad library from ClaudeFreeMeta only. Not every account has it yet
Meta’s Ad Library APIPolitical ads worldwide; any ad shown in the EUFreeNo US commercial ads. Needs identity confirmation and code
A scraper marketplace such as ApifyMeta ads by Page, keyword or countryAbout $5 per 1,000 adsOne scraper per platform
A swipe-file product such as ForeplaySaved ads on shared boardsMonthly plansA seat product for teams
treg.toMeta, Google, TikTok and LinkedIn libraries and trending videos, from one promptAbout $0.002 a page; our 132 Meta ads cost $0.017Pay per call. No boards

One brand, once: the browser. A team that saves and shares ads every day: a swipe-file product. EU research with reach numbers: Meta’s API. Three brands, four libraries, every week, from Claude: treg.to.

The ruleStart free. Pay when you repeat it.
Appendix B

Claude Code skills and connectors for ads, and what each needs from you

We read these repositories file by file on 26 Nov 2026. We have not run them end to end. Star counts are from that day.

RepositoryStarsWhat it doesWhat you bring
coreyhaines31/marketingskills62.9kAds and ad-creative skills, audits, decision rulesNothing for the skills; Meta’s connector or your own tokens for live data
AgriciDaniel/claude-ads11.4kAccount audit and planningExports or screenshots you paste in. It does not write to accounts
googleads/google-ads-mcp1.2kGoogle’s own connector: reads, and writes assets and labels onlyA Google Cloud project with the Google Ads API enabled
pipeboard-co/meta-ads-mcp1.4kMeta read and write tools, self-hosted or hostedYour own Meta developer app and token, or a paid account
kLOsk/adloop304Google, Reddit and Microsoft Ads with a preview before every writeYour own Google Cloud project
sepivip/meta-ads-skill15A launch playbook for Meta’s own connectorMeta’s connector and an ad account with a payment method

Where they agree: read first and write later; create everything paused; one change at a time; check tracking before you judge an ad; pause, never delete. Where they disagree: the numbers for killing and scaling an ad. None cites a platform source for them.

Appendix C

Every run behind this playbook

RunDateWhat came backMetered on treg.to
Steps 1 to 8, each printed prompt typed as written, in order, in one empty folder (11 prompts, 38 minutes)27 Novadvertisers.md, a 292-ad swipe file, hooks.md, teardown.md, offers.md, brief.md, five image ads, one clip$2.37
Step 3 on one competitor’s own account (rea-growth)26 Nov120 posts ranked$0.01
First pass, scripted, all research and creative steps26 Nov251 ads, three landing pages, five ads, three clips (one refused, one rejected)$1.99

Steps 9, 10 and 11 are marked Method: we have not run them on an ad account. Claude Code’s own usage is not in these figures.

Appendix D

Glossary and questions

Ad libraryThe public page where a platform shows the ads running on it. Meta, Google, TikTok and LinkedIn each have one.
Swipe fileYour saved examples of other people’s ads (step 2).
HookThe opening line or first second of an ad (step 3).
AngleOne person, one problem, one claim (step 6).
BriefOne page that says who the ad is for, the angle, the opening line and the format (step 6).
UGCCreator-style video. In this playbook it is made by AI and labelled as such (step 8).
ConnectorA link between Claude and another service. Also called an MCP server (step 9).
Ad setThe group inside a campaign that holds ads and a budget (step 9).
Cost per purchaseSpend divided by purchases. The number step 10 sorts on.
Can Claude Code see my competitors' ads?

Yes, the public ones. Meta, Google, TikTok and LinkedIn each publish an ad library. Claude Code can read them through a data tool such as treg.to and save the ads to a file. It sees the creative, the copy, the start date and the landing page. It does not see spend or results: no library publishes those for commercial ads.

Does a long-running ad mean it is winning?

Not on its own. A start date shows the ad was not turned off. It does not show profit, and an old ad can be neglect. The stronger sign is the same idea running in several live versions, with the same offer and landing page, still there when you check again a week later.

Is it safe to connect Claude to my Meta ad account?

Meta's help page says using its own ads connector does not by itself put an account at risk; restrictions follow policy violations, payment problems and compromised accounts. A few advertisers report restrictions after connecting an agent, and none has shown the cause. Start read-only, create everything paused, and set the connector's action and budget limits in Meta Business settings.

How much does it cost to run this playbook?

In our 27 Nov 2026 run the research steps (1 to 6) cost $0.18 on treg.to, the image ads were free because Claude Code laid out our own product photo, and one 8-second video cost $2.19. Claude Code's own usage and your ad spend are separate.

Do AI-made ads perform as well as real ones?

We have not measured it, and no source we read gives a reliable answer. Advertisers who posted their own tests describe AI ads as a cheap way to find an angle, with a filmed remake of the winner lasting longer. Treat the ads from steps 7 and 8 as tests.

Run step 1
in your agent today.

One key for 4,200+ tools across 141 providers. $1.00 of free credit once per new verified account, which covers the research in steps 1 to 6.

›set up treg — https://treg.to/llms.txt
$npx skills add superdesigndev/treg
Set up tregRead as Markdown