Plan YouTube ads in Codex. You approve every change.
Codex sets up Demand Gen campaigns that show videos already on your channel across YouTube, Shorts and more, then puts their results next to your Search campaigns.
Updated
- Video ads through Demand Gen
- Uses videos already on YouTube
- New campaigns start paused
- You approve every change
What is the YouTube Ads MCP for Codex?
Adneuron is an MCP server that connects Codex to YouTube Ads, which it runs as Google Demand Gen campaigns. With it added, Codex can build video campaigns from videos already on YouTube, choose channels such as in-stream, in-feed and Shorts, pick audiences, keep ads off chosen channels and compare results with Search. It works in the Codex CLI, IDE extension and ChatGPT desktop app. Every change needs your approval; campaigns start paused.
- Codex shows the channels, budget and audiences before anything is made
- New Demand Gen campaigns are created paused
- Removal is permanent on Google, so Codex suggests pausing
- You connect Google Ads with Google's own sign-in
How it works in Codex
Paste a YouTube link
Codex works with videos already on your channel. Paste a video's link in the terminal and Codex builds the ad around it; it doesn't upload new videos.
Video next to Search in one file
Ask Codex to put Demand Gen and Search spend, conversions and cost per conversion side by side and write the table to a CSV you can share.
Also in the ChatGPT desktop app
The ChatGPT desktop app shares Codex's settings file, so the YouTube campaign you planned in the terminal can be checked there without adding Adneuron again.
Permission, then approval
Codex asks you to allow an Adneuron tool the first time. Turning a channel off or creating a campaign still waits for your yes on the plan.
See it in action
What Codex can do in YouTube Ads
Demand Gen video campaigns
Ad groups, video ads and targeting built in one confirmed step from videos on YouTube, paused until you turn them on.
Choose channels
YouTube in-stream, in-feed and Shorts, plus Display, per ad group, or every channel Google offers; turn one off, such as Gmail, and keep the rest.
Audiences
Your data segments, affinity and in-market segments, demographics, and locations and languages per campaign or per ad group.
Channels to avoid
Target, or keep your ads off, chosen YouTube channels, videos, sites and apps.
Edit video ads
New headlines, descriptions, videos and calls to action on an existing ad, shown before and after.
Compare with Search
Spend, clicks, conversions and cost per result by campaign, ad group and ad, next to your Search and other platforms.
Prompts to try
Set up in a few minutes
- 1
Connect Google Ads
Sign up free at Adneuron and connect the Google Ads account that will run your YouTube ads.
- 2
Add Adneuron with codex mcp add
Run the one-line command from the setup guide; Codex finds Adneuron's sign-in and opens your browser.
- 3
Sign in and plan
Choose a workspace, click Allow, then ask Codex to plan a Demand Gen campaign for one of your videos.
Codex or the YouTube Ads website?
| Task | Adneuron in Codex | YouTube Ads website |
|---|---|---|
| Launch a video campaign | Describe it; Codex builds it paused | Campaign setup in Google Ads |
| Show ads on YouTube only | Say which channels to keep | Channel controls per ad group |
| Compare with Search | One table across campaign types | Separate reports |
| Upload a new video | Not from Codex; upload to YouTube first | YouTube Studio |
Questions
Setup
What do I need to run YouTube ads from Codex?
A free Adneuron account with Google Ads connected, Codex with Adneuron added, and your videos already on YouTube. Codex uses those existing videos by their link.
Can I add Adneuron by editing config.toml?
Yes. Add an [mcp_servers.adneuron] entry with the server address to ~/.codex/config.toml, then run codex mcp login adneuron to sign in with your Adneuron account in the browser.
Capabilities
Which YouTube placements can Codex use?
YouTube in-stream, in-feed and Shorts through Demand Gen campaigns, plus the Display network. You choose channels per ad group or let Google use all of them.
Can Codex upload my video to YouTube?
No. Upload the video to YouTube yourself, then give Codex its link. Codex builds the Demand Gen ad around the existing video and shows the plan first.
Can it target specific audiences on YouTube?
Yes: your data segments, affinity and in-market segments, ages, genders, household incomes and parental status, and locations and languages per campaign or ad group. Optimised targeting can be on or off.
Safety and control
Will Codex start spending on YouTube without asking?
No. The plan comes first and waits for your yes, and a new Demand Gen campaign is created paused. Nothing spends until you turn it on in Codex or Google Ads.
What does removing a Demand Gen campaign do?
It's permanent on Google: the campaign keeps its results but can't run again. Codex says so before you agree and offers to pause it instead.
Related integrations
Codex with other ad platforms
- Codex × Google Search AdsSearch campaigns, keywords and search terms
- Codex × Performance MaxAsset groups, signals and search themes
- Codex × Google ShoppingProduct groups, bids and product results
- Codex × Google DisplayDisplay campaigns and image ads
- Codex × Meta AdsFacebook and Instagram campaigns
- Codex × Meta Catalog AdsCatalogs, product sets and catalog campaigns
- Codex × Meta Lead AdsLead forms and the leads they collect
- Codex × Amazon AdsSponsored Products, Brands and Display
- Codex × LinkedIn AdsB2B campaigns by job title and company
- Codex × TikTok AdsIn-feed video and Smart+ campaigns
YouTube Ads in other AI assistants
- ChatGPT × YouTube AdsIn ChatGPT, from the app store
- Claude × YouTube AdsIn Claude on web, desktop and mobile
- Cursor × YouTube AdsWithout leaving the Cursor editor
Claude Code × YouTube AdsFrom your terminal with Claude Code
Devin Desktop × YouTube AdsWith Devin on your desktop
Grok × YouTube AdsIn Grok on the web
Grok Build × YouTube AdsFrom Grok Build in your terminal
GitHub Copilot × YouTube AdsIn VS Code with GitHub Copilot
Gemini × YouTube AdsIn Gemini
Manus × YouTube AdsIn Manus
Ready to connect Codex to YouTube Ads?
Free plan, no credit card. Every change waits for your yes.