Skip to content
  • Google Ads
  • Plugin
  • MCP server

How to use Google Ads in Codex with AdsGPT

Ask Codex how your Google Ads campaigns are doing, request optimizations and launch new ads on Google Search, YouTube, Display, Discover, Gmail, Maps and Google Play, always with your approval.

Try it free — 50 actions/moOfficial documentation

AdsGPT connects Codex to your Google Ads account. You connect Google Ads once in AdsGPT and Codex can read your metrics instantly, suggest changes and create new campaigns. The other networks already work in the AdsGPT assistant and are coming soon to Codex.

Google Ads is the largest ad network in the world: your ads show when people search for what you sell, and across YouTube, Gmail, Discover, Maps and Google Play. With AdsGPT your AI reports by campaign, ad group, ad, keyword or search term, finds wasted spend, researches keywords, makes changes with your approval and creates Search, Performance Max, Demand Gen, Display and App campaigns in one step.

What you can do with Google Ads

  • Wasted spend

    Find the search terms that cost money without converting and add them as negative keywords.

  • Changes with your approval

    Budgets, bid strategies, ads, keywords, targeting and extensions: your AI shows what will change before it applies it.

  • Campaigns in one step

    Search, Performance Max, Demand Gen, Display or App by goal, with budget, dates, targeting and ads.

Requirements

  • An AdsGPT account with at least one ad platform connected.
  • The Codex CLI, the Codex IDE extension or the Codex app.
  • A browser to sign in (or a second device, see tips).

Step-by-step setup

Connect Google Ads in AdsGPT

    1. Sign in to app.adsgpt.dev as the organization owner.
    2. Open Plugins and choose Google Ads.
    3. Sign in with the Google account that has access to your ad accounts and authorize AdsGPT.
    4. Your Google Ads accounts show up in AdsGPT and any member can use them from their AI, as their role allows.

    Add AdsGPT to Codex: install the AdsGPT plugin

    • Plugin
    • Recommended
    1. Add the marketplace and the plugin:
      Terminal
      codex plugin marketplace add adsgpt-dev/agent-plugins
      codex plugin add adsgpt@adsgpt
    2. You can also open /plugins in Codex, or the Plugins tab in the app, and install AdsGPT from adsgpt.
    3. Sign in:
      Terminal
      codex mcp login adsgpt
    4. Start a new Codex session.

    Add the MCP server only

    • MCP server
    1. Add the server with one command:
      Terminal
      codex mcp add adsgpt --url https://mcp.adsgpt.dev
    2. Or edit ~/.codex/config.toml:
      ~/.codex/config.toml
      [mcp_servers.adsgpt]
      url = "https://mcp.adsgpt.dev"
    3. Sign in with codex mcp login adsgpt.

    Example prompts for Google Ads

    • “Find the search terms that spend without converting in the last 30 days.”
    • “Compare this month with last month and explain why my cost per conversion went up.”
    • “Research keywords for my dental clinic and plan a Search campaign.”

    Security and approvals

    • You sign in with OAuth 2.1: you never copy or share API keys.
    • The ads:read scope comes first; ads:write is only requested the first time a tool changes something.
    • Every change shows the current and new value and waits for your approval.
    • New campaigns launch paused unless you ask otherwise.
    • AdsGPT acts with your role on the account and receives tool calls, never your conversation.

    Tips

    • On a machine without a browser, run codex mcp login adsgpt --no-browser and open the printed link on another device.
    • Combine AdsGPT with Codex tasks: for example, have it build landing pages and then plan the Search campaign for them.

    Frequently asked questions

    Can I use Google Ads in Codex?

    Yes. With AdsGPT, Codex can query and manage your Google Ads campaigns: reports, budgets, statuses and new campaigns.

    Do I have to connect Google Ads inside Codex?

    No. Google Ads is connected once in AdsGPT and is then available to your organization.

    Can my Google Ads campaigns be changed without permission?

    No. Reads run instantly, but every change shows the current and new value and waits for your approval. New campaigns are created paused.

    Can I manage several networks at once?

    In the AdsGPT assistant you already work with Google Ads, Meta Ads, TikTok Ads, LinkedIn Ads, X Ads, Reddit Ads, OpenAI Ads and Unity Ads. From Codex, Google Ads is available today and the rest are coming soon. A campaign on several networks is created on each with the same name, so your reports tie them together.

    Which Google Ads campaign types can I create?

    Search, Performance Max, Demand Gen, Display and App, depending on your goal: awareness, traffic, engagement, leads, sales or app promotion. Performance Max bids for conversions, so the account must measure them.

    Does it work with manager accounts (MCC)?

    Yes. A manager account groups other accounts and has no campaigns of its own: AdsGPT reports on, changes and creates campaigns in its client accounts.

    Can it apply Google's recommendations?

    Yes. Your AI reads Google's recommendations and can apply or dismiss them, always with your approval.

    Google Ads with artificial intelligence →
    Google Ads + Codex

    Start managing your ads from your AI

    Create your AdsGPT account, connect your ad networks and add the integration in minutes.