Skip to content

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

How it works: you ask Codex, Adneuron shows the plan and waits for your yes, then the change goes live in YouTube Ads.
  • 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

Codex works out the change, shows it to you and waits. Nothing happens in YouTube Ads until you say yes.
Example with made-up campaigns. Codex names each channel it will switch off; Google Ads changes after you approve.

What Codex can do in YouTube Ads

Changes wait for your approval. See everything 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

Talk to Codex the way you would brief a colleague. Tap a prompt to copy it.

Set up in a few minutes

No API key. The Codex setup guide has every step and fixes for common problems.
  1. 1

    Connect Google Ads

    Sign up free at Adneuron and connect the Google Ads account that will run your YouTube ads.

  2. 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. 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?

Use both. Here is what each is good at.
TaskAdneuron in CodexYouTube Ads website
Launch a video campaignDescribe it; Codex builds it pausedCampaign setup in Google Ads
Show ads on YouTube onlySay which channels to keepChannel controls per ad group
Compare with SearchOne table across campaign typesSeparate reports
Upload a new videoNot from Codex; upload to YouTube firstYouTube 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.

Ready to connect Codex to YouTube Ads?

Free plan, no credit card. Every change waits for your yes.