Codex is OpenAI's software development agent. Integrated with AdsGPT, it can check how your campaigns on Google Ads, Meta Ads and more perform, build automated reports or adjust budgets while you work on your product.
Because the Codex CLI, IDE extension and Codex app read the same configuration, you only install AdsGPT once. Use the plugin, which includes skills, or add just the MCP server.
What you can do
Instant reports
Performance by account, campaign, ad group or ad set and ad, on any network and period.
Find wasted spend
Spot campaigns, ads or search terms that spend without converting and decide what to pause.
Adjust budgets and statuses
Raise or lower budgets and pause or enable campaigns, ad groups and ads, with your approval.
Create and launch campaigns
Plan a campaign with copy, images and videos and launch it on one or several networks at once. It is created paused.
Platforms compatible with Codex
From Codex you already manage Google Ads. The other networks already work in the AdsGPT assistant and are coming soon to Codex. Pick one to see its guide.
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
Install the AdsGPT plugin
- Plugin
- Recommended
- Add the marketplace and the plugin:
Terminal codex plugin marketplace add adsgpt-dev/agent-plugins codex plugin add adsgpt@adsgpt - You can also open
/pluginsin Codex, or the Plugins tab in the app, and install AdsGPT fromadsgpt. - Sign in:
Terminal codex mcp login adsgpt - Start a new Codex session.
Add the MCP server only
- MCP server
- Add the server with one command:
Terminal codex mcp add adsgpt --url https://mcp.adsgpt.dev - Or edit
~/.codex/config.toml:~/.codex/config.toml [mcp_servers.adsgpt] url = "https://mcp.adsgpt.dev" - Sign in with
codex mcp login adsgpt.
Example prompts
- “How did my Google Ads campaigns do last week?”
- “Compare Meta Ads and TikTok Ads performance this month, by campaign.”
- “Find the search terms that spend without converting in the last 30 days.”
- “Raise the daily budget of my best-converting campaign by 20%.”
- “Launch the same campaign on Google Ads, Meta Ads and LinkedIn Ads with a budget of 300 for 30 days.”
- “Plan a Performance Max campaign to get leads for my clinic in Madrid.”
Security and approvals
- You sign in with OAuth 2.1: you never copy or share API keys.
- The
ads:readscope comes first;ads:writeis 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-browserand 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
Do I have to set up the Codex CLI and app separately?
No. They share configuration, so a single install makes AdsGPT available in all three.
How is Codex different from the ChatGPT plugin?
Codex is OpenAI's coding agent; the ChatGPT plugin is for the chat app. Both use the same AdsGPT server, so you can have both.
How do I update the plugin?
From /plugins in Codex or the app's Plugins tab you can see and install new versions from the adsgpt marketplace.