How to run Google Performance Max from Claude Code
Claude Code builds a Performance Max asset group as files you can check: every line with its character count, every image at Google's sizes, videos in three shapes. You upload the folder in Google Ads; launching through Hypesonic is coming soon.
By Grace Kong·Updated ·6 min read
Build a Performance Max folder from your agent
TL;DR
Setup is one claude mcp add command plus a CLAUDE.md file that holds Google's asset limits, so every run follows them without being told.
Images must be 1200 x 628 and 1200 x 1200 (960 x 1200 optional), JPG or PNG under 5 MB; Claude Code checks pixel and file sizes in a script before anything reaches Google (Google).
Google reviews most ads within one business day (Google), then learning takes 1 to 2 weeks and sometimes up to 6.
At the 2026 all-industry average of $66.69 per lead (2026 benchmarks), $75 a day buys about 34 leads a month.
Set up Claude Code for Performance Max
Add Hypesonic, then write Google's asset limits into CLAUDE.md so every asset group passes on the first try.
Open the folder for your Google Ads work and run:
claude mcp add --transport http hypesonic https://www.hypesonic.com/mcp
Restart Claude Code and sign in when the browser opens. Do it once in an interactive session: a claude -p run cannot finish the sign-in (Claude Code docs). Add --scope user to use Hypesonic in every project. Full setup: hypesonic.com/agents/claude-code.
Then put the standing rules in CLAUDE.md at the top of the folder. Claude reads it at the start of every session there, so you stop repeating yourself:
# Performance Max
- Account: Hearth Furniture. Goal: purchases.
- Business name: "Hearth Furniture" (25 characters max, matches the site).
- 15 headlines of 30 characters or fewer, at least one of 15 or fewer.
- 5 long headlines and 5 descriptions, 90 characters or fewer.
- Images: 4+ at 1200x628, 4+ at 1200x1200, 2+ at 960x1200. JPG or PNG, under 5 MB.
- Logos: 1200x1200 and 1200x300, from our logo file.
- Our own videos in 16:9, 1:1 and 9:16, 10 seconds or longer.
- Save to pmax/{campaign}/ with assets.csv (asset, text, characters, file).
- Quote every paid run before you make anything.Launching Performance Max through Hypesonic is coming soon, so today the folder is the hand-off: you upload it in Google Ads. Google's own Google Ads MCP server also runs in Claude Code, with Python and a Google Cloud project. It reads reports with GAQL (Google Ads Query Language) and manages assets and labels, but does not create or change campaigns, budgets or bids (googleads/google-ads-mcp), so it is useful for the review after launch.
The command
One prompt produces the whole asset group; a second, two weeks after you launch, reviews it.
Build a Performance Max asset group for https://hearthfurniture.com/winter-sale following CLAUDE.md. Save every asset to pmax/winter-sale/ with assets.csv. Check every character count and image size and fix what fails. Quote the images and video first, and write the settings for a $75 a day purchase campaign to settings.md.
Claude Code keeps the counts honest by writing them next to the text. A slice of assets.csv:
type,text,characters headline,Solid Oak Tables,16 headline,Sofas Built to Last,19 headline,Winter Sale Now On,18 headline,Oak,3 long_headline,Solid oak dining tables built in California, now 20% off,58 description,Free delivery in Sacramento, Reno and Fresno. Shop the winter sale today.,73
The 3-character "Oak" is deliberate: Google wants at least one headline of 15 characters or fewer, and very short ones fill narrow placements.
What Claude Code does, step by step
Text, images and video are built and checked locally, so nothing fails Google's limits at upload.
- Reads the landing page and CLAUDE.md, and pulls the brand logo and product photos into
pmax/winter-sale/source/. - Writes the text assets and counts characters in a script, so nothing over 30 or 90 characters reaches Google. Characters in Chinese, Japanese and Korean count double.
- Quotes the creative with
runandestimate: true: the model's price plus a 10% markup, and failed runs cost nothing. - Makes the images in 1.91:1, 1:1 and 4:5 after your yes, keeping the product near the center so Google's crops still show it.
- Makes the videos in 16:9, 1:1 and 9:16. With no video in the asset group, Google may generate one from your other assets; your own videos prevent that.
- Checks everything: pixel sizes, file sizes under 5 MB, counts within limits, business name matching the site.
- Hands you the folder. You create the campaign in Google Ads with the settings in
settings.mdand upload the assets. Launching it through Hypesonic is coming soon.
What you get back
An asset group you can diff, rerun and reuse for the next sale.
pmax/winter-sale/ assets.csv (every text asset with its character count) images/1200x628_*.jpg images/1200x1200_*.jpg images/960x1200_*.jpg logos/1200x1200.png logos/1200x300.png video/16x9_15s.mp4 video/1x1_15s.mp4 video/9x16_15s.mp4 settings.md (goal, daily budget, location, final URL)
Performance Max numbers to build around
The asset limits are strict, and the learning period is long enough to plan a check-in.
| Asset or rule | Limit |
|---|---|
| Headlines | 3 to 15, up to 30 characters, at least one of 15 or fewer |
| Long headlines | 1 to 5, up to 90 characters |
| Descriptions | 2 to 5, up to 90 characters |
| Business name | 25 characters, matching your domain or verified name |
| Images | Up to 20: 1200 x 628 and 1200 x 1200 required, 960 x 1200 optional; JPG or PNG up to 5 MB |
| Logos | 1200 x 1200 required, 1200 x 300 optional; up to 5 |
| Videos | Up to 15, 10 seconds or longer; one each in 16:9, 1:1 and 9:16 recommended |
| Review | Most ads within one business day |
| Learning | 1 to 2 weeks, sometimes up to 6 after big changes |
Sources: Performance Max specs, ad review process, learning period, all Google Ads Help, checked Nov 30, 2026.
On cost, 2026 Google Ads averages were $5.42 per click and $66.69 per lead across industries (LocaliQ). At $75 a day, that is about 34 leads a month (our math), so judge the campaign on cost per conversion after learning, not in week one.
Plan the two-week review now
Google says to avoid big edits during learning, so plan one review for when it ends.
Read pmax/winter-sale/asset-report.csv, list the assets Google rates low, and draft replacements in pmax/winter-sale/round-2/ following CLAUDE.md. Quote the images and video first.
Export the asset report from the campaign in Google Ads, or read it with Google's own Ads MCP. For a nudge on the day, /schedule a one-off run 14 days out. One-off runs are a kind of cloud scheduled task, available on Pro, Max, Ultra, Team and Enterprise plans; they use the connectors on your claude.ai account (Claude Code docs). Until then, resist daily tweaks: Google recommends allowing one to two conversion cycles after a big change (Google).
What Claude Code is best and worst at for Performance Max
It handles the tedious, exact work of an asset group better than any form; strategy calls and the upload stay with you.
| Strong | Weak |
|---|---|
| Exact character counts and pixel sizes on every asset. | Brand judgment: read the headlines aloud before you upload. |
| Reusing last sale's folder as the template for the next. | Seeing how Google combines assets: only the live preview shows that. |
Timed reminders with /schedule. | Account-wide reporting needs Google's own MCP or an export. |
| Video in three shapes, reframed on your machine. | Sign-in: OAuth must happen interactively before scripted runs. |
Questions
Can Claude Code run Google Ads?
It builds the whole Performance Max asset group as checked files through Hypesonic, and you upload it in Google Ads, because launching Google campaigns through Hypesonic is coming soon. Google's own MCP server adds reporting but cannot create campaigns.
How many headlines does Performance Max need?
At least 3 and up to 15, each 30 characters or fewer, with at least one of 15 or fewer. Google recommends 11 or more.
Do I need video for Performance Max?
It is optional, but without one Google may generate a video from your other assets. Upload your own in 16:9, 1:1 and 9:16, each 10 seconds or longer.
How long before Performance Max results are reliable?
Learning typically takes 1 to 2 weeks and sometimes up to 6 after big changes, so review after the first two weeks.
Sources
- 1Claude Code docs, Connect to tools via MCP · accessed Nov 30, 2026
- 2Claude Code docs, Automate work with scheduled tasks · accessed Nov 30, 2026
- 3Google Ads Help, Performance Max specs and format requirements · checked Nov 30, 2026
- 4Google Ads Help, About the ad review process · accessed Nov 30, 2026
- 5Google Ads Help, Performance Max troubleshooting and learning · accessed Nov 30, 2026
- 6LocaliQ, search advertising benchmarks 2026 · Jun 2026
- 7GitHub, googleads/google-ads-mcp README · accessed Nov 30, 2026
Build a Performance Max folder from your agent
Keep reading
- GuidesCan Claude run Google Performance Max campaigns?Read
- GuidesHow to run Meta ads from Claude CodeRead
- Ad specsWhat assets does a Performance Max asset group need?Read
- CostsHow much does Google Performance Max cost?Read
- IntegrationsGoogle Ads MCP: what Google's official server can and can't doRead
- GlossaryWhat is Performance Max?Read
- IntegrationsHow to connect the Hypesonic MCP to your AI agentRead