Review Meta Ads Performance With Codex and Soku CLI
Connect Codex to Meta Ads reporting through Soku CLI, compare campaign and creative performance, identify fatigue and CPA changes, and return a read-only optimization brief with evidence.
Best for
Performance marketers who work in Codex and need a fast, reproducible Meta Ads review grounded in account data instead of screenshots.
Access mode
Read-only analysis
No connected account changes.
The prompt
Read https://soku.ai/cli/skill.md and connect Codex to my Soku workspace. Use the Meta Ads reporting commands and the ads-report and audit-creative skills to compare the last 14 days with the previous 14 days. Produce a read-only brief covering CPA, ROAS, delivery, creative fatigue, and budget anomalies. Safety boundary: do not change connected accounts or publish content. Use read commands only, and return proposed actions for a human to review separately.
Paste this into Claude Code, Codex, Cursor, or another shell-based agent. It will pause when browser approval or a human review is required.
What you will get
Codex returns a period-over-period Meta Ads performance brief with campaign anomalies, creative-fatigue evidence, and recommended decisions that remain proposals until a human chooses to act.
- A two-period Meta Ads performance comparison with cited metrics
- A creative-fatigue and budget-anomaly decision list without account changes
Before you start
- A Soku workspace with a connected Meta Ads account
- Codex running in a shell with Node.js 20 or newer
Works with
Run it with Soku CLI
- 1
Install and authenticate
Use the agent-safe device flow, then resume after the user approves in the browser.
npm i -g @soku-ai/cli && SOKU_NO_KEYCHAIN=1 soku auth login --no-wait - 2
Confirm the Meta account
Discover accessible Meta accounts and have the user resolve ambiguity before analysis.
soku ads list-ad-accounts --platform meta - 3
Compare performance windows
Query campaign and creative dimensions for both periods and apply the same decision rules to each row.
soku skill install ads-report audit-creative --global - 4
Deliver the brief
Separate observed facts from recommendations and preserve the queried date windows in the report.
Safety boundary
Read onlyThe review uses reporting data only. Codex must not call mutations or approve pending reviews; any recommended pause, budget move, or creative replacement remains a human decision.
Related Soku skills: soku-ads-report, soku-audit-creative
More Agent Workflows use cases
Audit Google Ads With Claude Code and Soku CLI
Give Claude Code read-only access to Google Ads through Soku CLI, inspect tracking, search terms, creative coverage, budgets, and Quality Score, then save an evidence-backed account audit.
Build a Weekly Cross-Channel Ads Report With an AI Agent
Use a local AI agent and Soku CLI to combine Google Ads, Meta Ads, and GA4 into one weekly report that explains changes, flags anomalies, and preserves the reporting window.
Analyze GA4 Landing Pages With Claude Code and Soku CLI
Let Claude Code query GA4 through Soku CLI, rank landing pages by traffic and conversion behavior, find paid-traffic leaks, and save an evidence-backed CRO shortlist.
Analyze a PostHog Funnel With Codex and Soku CLI
Give Codex allowlisted, read-only PostHog access through Soku CLI, inspect the live project schema, measure a conversion funnel, and produce a drop-off diagnosis without exposing provider keys.
