Today you manage Meta 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 Meta Ads to its MCP server without you reinstalling anything.
Meta Ads puts your ads on Facebook, Instagram, Messenger and Audience Network. With AdsGPT you get reports by account, campaign, ad set or ad, broken down by age, gender, country, platform, position (feed, stories, reels) or device; you activate, pause or archive; adjust budgets and targeting; and create image campaigns for awareness or traffic. Ads speak as your Facebook page and, optionally, your Instagram account.
What you can do with Meta Ads
Reports with breakdowns
Reach, frequency, clicks, spend, CPM, CTR and CPC, plus results such as leads or purchases when the account measures them with a pixel.
Budgets and targeting
Change daily or total budgets and an ad set's targeting: countries, cities, interests, behaviors, ages and genders.
Image campaigns
Awareness or traffic with 1 to 5 square or vertical image ads, automatic placements, 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 Meta Ads in AdsGPT
- Sign in to app.adsgpt.dev as the organization owner.
- Open Plugins and choose Meta Ads.
- Sign in with the Meta account that has access to your ad accounts and authorize AdsGPT.
- Your Meta Ads accounts show up in AdsGPT and any member can use them from the AdsGPT assistant, as their role allows.
Add AdsGPT to Codex: 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 for Meta Ads
- “Which Instagram ads had the best CTR this month, by position?”
- “Archive the Meta ads with a CPC above 1 dollar in the last 14 days.”
- “Create a Meta traffic campaign for my store with three image ads.”
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
Can I use Meta Ads in Codex?
Not yet. Meta 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 Meta Ads inside Codex?
No. Meta Ads is connected once in AdsGPT and is then available to your organization.
Can my Meta 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 Meta Ads campaigns can I create?
Image campaigns for awareness or traffic, with 1 to 5 ads. Ads about credit, employment, housing, social issues or politics need a special ad category and are made in Ads Manager.
What do I need to connect Meta Ads?
The organization owner opens Plugins → Meta Ads in AdsGPT and signs in with the Facebook account that has access to your ad accounts. Creating ads needs a Facebook page.
Can I change an ad's text or image?
Meta doesn't allow it: a new version is a new ad, whose results start over. AdsGPT can change an ad's name or the page it opens.