Skip to main content
Autonomous ad campaign management. Your AI agent runs campaigns while you sleep.

What Makes Codex Different

Most AI tools are assistants. They answer questions. They generate copy. They analyze data when you ask. Codex is autonomous. You define the goal — “check my ad performance every morning and flag anything unusual” — and the agent runs that task on a schedule. No human in the loop. It wakes up, pulls your campaign data, analyzes it, and sends you a summary. If your cost-per-acquisition spikes 40% overnight, you get an alert before you’ve had coffee. When you connect Codex to Adspirer, you get 100+ advertising tools that run on a schedule. It’s an AI ad manager that operates 24/7.

Prerequisites

  • OpenAI Codex CLI installed and working
  • git installed (used by the installer)
  • An Adspirer account (free to start)
  • At least one ad platform account: Google Ads, Meta Ads, LinkedIn Ads, or TikTok Ads

Setup

You’re connected. Codex now has 100+ advertising tools available for autonomous and interactive use.

Available Skills

SkillInvocationWhat it Does
Adspirer Ads$adspirer-ads or just ask naturallyFull campaign management — 100+ tools, all workflows, all platforms
Setup$adspirer-setupBootstrap a brand workspace (first-time or refresh)
Performance Review$adspirer-performance-reviewCross-platform performance scorecard
Write Ad Copy$adspirer-write-ad-copy Google SearchBrand-voice ad copy from real data
Wasted Spend$adspirer-wasted-spendFind and fix wasted ad spend
You don’t need to remember skill names — just describe what you want and Codex will match the right skill automatically.

What You Can Do

100+ tools across 4 ad platforms, available for autonomous or on-demand tasks:
PlatformToolsKey Capabilities
Google Ads39Keyword research, Search & PMax campaigns, wasted spend detection, budget reallocation, search term analysis
LinkedIn Ads28B2B targeting (job titles, industries, company size), sponsored content, lead gen forms, performance analysis
Meta Ads20Image/video/carousel campaigns, creative fatigue detection, audience targeting, placement optimization
TikTok Ads4In-feed campaigns, asset validation, performance tracking

Autonomous Workflows (The Real Use Case)

Here’s why people use Codex with Adspirer:

Daily Performance Check-In

Agent YAML default_prompt:
"Pull yesterday's performance across all my ad platforms.
Compare to the previous 7-day average.
Flag any campaigns with CPA increases over 30% or spend increases over 50%.
Send me a summary."
Schedule this to run every morning at 8am. You wake up to a performance summary in your inbox or Slack. No dashboards to check.

Weekly Wasted Spend Audit

Agent YAML default_prompt:
"Audit my Google Ads account for wasted spend in the last 7 days.
Find keywords with spend but zero conversions.
For each keyword, recommend: pause it, add a negative keyword, or lower the bid.
Total up potential monthly savings."
Run this every Monday. The agent finds money leaks and tells you exactly what to fix.

Budget Rebalancing

Agent YAML default_prompt:
"Analyze performance across Google and Meta Ads for the last 30 days.
I have $10,000/month total budget.
Recommend how to split the budget for maximum conversions.
Show me current allocation vs recommended allocation."
Run this monthly. The agent analyzes cross-platform ROI and recommends where to shift spend.

Anomaly Detection

Agent YAML default_prompt:
"Check all active campaigns across Google, Meta, LinkedIn, and TikTok.
Look for anomalies in the last 24 hours:
- Sudden CPA spikes
- Campaigns that stopped converting
- Unexpected spend increases
Alert me immediately if anything is found."
Run this every 6 hours. The agent acts as a 24/7 monitoring system. If something breaks at 3am, you get an alert.

On-Demand Prompts (Non-Autonomous)

You can also run Codex with one-off prompts instead of the default task:

Campaign Creation

codex run adspirer-ads "Create a Google PMax campaign for my DTC brand:
- Product: premium wireless earbuds, $129 retail price
- Target ROAS: 350%
- I have product images and videos ready
- Write asset group headlines and descriptions
- Use my Google Merchant Center feed"

LinkedIn Lead Gen

codex run adspirer-ads "Launch a LinkedIn campaign targeting CTOs:
- Company size: 100-1,000 employees
- Industries: fintech, SaaS, cybersecurity
- Product: zero-trust security platform
- Budget: $150/day
- Goal: whitepaper downloads
- Image URL: [paste URL]"

Cross-Platform Report

codex run adspirer-ads "Generate a Q1 2026 performance report.
Pull data from Google Ads, Meta Ads, and LinkedIn Ads.
Include: total spend, conversions, ROAS by platform.
Format as markdown."

Safety Features (Critical for Autonomous Agents)

When an AI agent runs without human oversight, safety matters. Adspirer enforces these rules:
  • All campaigns created PAUSED: Even in autonomous mode, campaigns don’t launch until you manually approve them
  • No budget changes without confirmation: The agent can analyze and recommend budget changes, but it can’t execute them autonomously
  • Read-before-write workflows: Skills force research and validation before any campaign creation
  • Connection status checks: Agent verifies it’s managing the correct account before taking any action
  • No automatic retries: If a tool call fails, the agent reports the error instead of retrying blindly
Bottom line: Autonomous doesn’t mean uncontrolled. The agent analyzes, recommends, and alerts — but you make the final spending decisions.

Troubleshooting

ProblemSolution
MCP server not foundRun codex mcp add adspirer --url https://mcp.adspirer.com/mcp and restart
MCP shows “Unsupported”Run codex mcp login adspirer to complete OAuth authentication
Authentication failedRun codex mcp login adspirer to re-authenticate
Install appears to hangA browser window may have opened for OAuth — complete sign-in and return to terminal
No ad platforms connectedConnect platforms at adspirer.com
Skills not showingVerify: ls ~/.agents/skills/ — should show adspirer-* directories
No data returnedCheck for active campaigns. Try longer lookback (60/90 days)
Rate limit hitCheck Adspirer tier (Free: 10/mo, Plus: 50, Pro: 100, Enterprise: unlimited)

FAQ

No. All campaigns are created PAUSED, and budget changes require user confirmation. The agent can analyze, recommend, and alert — but you approve spending decisions manually.
Claude Code is interactive — you ask it to do something, it does it. Codex is autonomous — you define a task once, and it runs on a schedule. Use Claude Code for ad-hoc analysis. Use Codex for recurring tasks like daily performance checks.
Edit the default_prompt in ~/.codex/agents/performance-marketing-agent.toml. Restart the agent for changes to take effect.
Yes. Create separate agent config files with different default prompts. Each agent can specify which Adspirer account to use via the switch_primary_account tool.
Adspirer pricing is based on tool calls. Free tier: 10 calls/month. Plus: 25/mofor50calls.Pro:25/mo for 50 calls. Pro: 75/mo for 100 calls. Autonomous agents typically use 2-5 tool calls per run. See full pricing details.
Last modified on February 25, 2026