Skip to content
  • OpenAI Ads
  • Plugin
  • MCP server

How to use OpenAI Ads in Codex with AdsGPT

OpenAI Ads already works in the AdsGPT assistant and is coming soon to Codex. Keep AdsGPT installed in Codex and connect OpenAI Ads once: when it arrives, there's nothing else to set up.

OpenAI Ads is coming soon to your AI. It already works in the AdsGPT assistant, on the web and in the mobile app. In ChatGPT, Claude and other AI it shows as coming soon.

Try it free — 50 actions/moOfficial documentation

Today you manage OpenAI Ads from the AdsGPT assistant, on the web and in the mobile app. In Codex it shows as coming soon: AdsGPT already works with Google Ads from Codex and will add OpenAI Ads to its MCP server without you reinstalling anything.

OpenAI Ads is OpenAI's ad platform: ads shown under ChatGPT's answers when the conversation is relevant. With AdsGPT you get reports by country, device or ChatGPT platform, with conversions, sales and ROAS; you activate, pause or archive; adjust budgets, bids and context hints; and create chat card campaigns for awareness or traffic.

What you can do with OpenAI Ads

  • Results in ChatGPT

    Impressions, clicks, spend, CTR, CPC and CPM, plus conversions, cost per conversion, sales and ROAS.

  • Context hints

    Describe the conversations or needs where your product helps; OpenAI reads them as signals, not keywords.

  • Chat card campaigns

    Cards with a title, body and square image that lead to your site, for awareness or traffic, created paused.

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 OpenAI Ads in AdsGPT

    1. Sign in to app.adsgpt.dev as the organization owner.
    2. Open Plugins and choose OpenAI Ads.
    3. In OpenAI's Ads Manager, create an API key in Settings. An OpenAI Platform key doesn't work.
    4. Paste the key in AdsGPT and connect. It is stored encrypted and never shown again.

    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 OpenAI Ads

    • “How many conversions did my ChatGPT ads bring last week, and at what cost?”
    • “Add "planning a family trip" as a context hint in my ad group.”
    • “Create an OpenAI Ads traffic campaign for my travel agency in the US.”

    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 OpenAI Ads in Codex?

    Not yet. OpenAI Ads already works in the AdsGPT assistant, on the web and in the app, and is coming soon to the MCP server. Until then, Codex lists it as coming soon.

    Do I have to connect OpenAI Ads inside Codex?

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

    Can my OpenAI 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.

    What is OpenAI Ads?

    OpenAI's ad platform, with ads inside ChatGPT conversations. It isn't the OpenAI Platform of models.

    How do I connect OpenAI Ads?

    Create an API key in the settings of OpenAI's Ads Manager (an OpenAI Platform key doesn't work) and paste it in Plugins → OpenAI Ads in AdsGPT. The key's owner must be an administrator of the ad account.

    OpenAI Ads with artificial intelligence →
    OpenAI Ads + Codex

    Start managing your ads from your AI

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