# Media Buyer: Amazon and Meta Ads Reviews With Guardrails

> Reviews Amazon Sponsored Products and Meta Ads accounts in Claude Code or Codex. A bundled script does the math, gates each change against your limits and logs it. Spend never rises without your yes.

Media Buyer: Amazon and Meta Ads Reviews With Guardrails is a paid AI agent skill on Agensi by Maulik Sompura, in Marketing & SEO. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $14.29 (one-time purchase)
- Creator: [Maulik Sompura](https://www.agensi.io/creators/maulik-sompura)
- Category: [Marketing & SEO](https://www.agensi.io/skills/marketing-seo)
- Version: 1.0
- Last updated: 2026-10-19
- Security: scan passed (2026-10-19); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/media-buyer-amazon-and-meta-ads-reviews-with-guardrails
- Tags: marketing, ecommerce, research, amazon-ads, meta-ads, media-buying, sponsored-products, ppc

## About this skill

Media Buyer is an Agent Skill for Claude Code and Codex that reviews Amazon Ads (Sponsored Products) and Meta Ads accounts the way a careful media buyer would. It is for people who run their own ads, or a few clients' ads, and want a second pair of hands for the weekly review: one that does the work without making changes they would not have made.

### How a run works

Each run follows the same loop.

It starts by pulling data. The skill reads reports and current settings through the API or MCP connector your agent already has. If there is no connector, it reads the CSV exports you download from the ads console or Ads Manager instead. Every file is saved exactly as received, and a bundled Python script, `mb.py`, rolls the raw files up into metrics, derives every ratio itself (CTR, CPC, CVR, CPA, ROAS, ACoS) and checks that the totals reconcile. Missing data stays unknown. The skill never fills in revenue, currency or conversions that a source does not contain.

Next it diagnoses each campaign, ad group, keyword and search term. It looks for the constraint before it optimizes: low impressions can come from eligibility, relevance, budget or auction rank, and a budget problem is not a rank problem. Each claim it makes carries a verdict of verified, not verified or inconclusive.

Then it proposes small, bounded changes to bids, budgets, pauses and negative keywords, in priority order. Each proposal states the new value, the reason, the expected impact and the spend risk in plain words. The agent gives only the new value. The script reads the current one from the account data.

The script gates every proposal against your limits and the account's change history. Each one gets a status: allowed, needs approval, approved, blocked, or proposed only (in a dry run). A block breaks a limit, and no approval can lift it. When you approve a change, the approval is tied to that exact change, and any edit voids it.

Every change is logged before it is made. The script records an intent in a ledger and prints a ticket for each change. Only the script writes the ledger. The agent changes the account only after a ticket exists for that change.

After the change, the skill reads the live value back. With a connector that can write, the agent makes the change and re-reads the entity. Without one, it gives you the exact steps, and you confirm with a fresh export or by telling it what the console now shows. The result is recorded as applied, not applied or mismatch. If a write failed or its result is uncertain, the skill reads the live value instead of trying again.

A later run judges the change. Once the review date passes, the next run compares the numbers before and after, records a verdict, and keeps, reverts or extends the change. A revert is a new proposal that goes through the same gate. The end of a test never counts as permission for a follow-up change.

Each run ends with an action items report in three parts: what was executed, what needs your call, and what is being watched.

### Guardrails

Your limits live in a `config.json` you own, filled in with you one decision at a time on the first run.

- **Dry run by default.** A new workspace starts in dry run, and a dry run changes nothing in the account. You switch to apply mode when the proposals look like ones you would have made.
- **Per-run change limit.** By default the skill makes one change per run and one per 24 hours. This is the main dial. Raise it as you come to trust the skill.
- **Step limits.** Bids move at most 15% and budgets at most 20% per change by default. A lever with no step limit always needs your yes.
- **Cooldown.** After a change, the ad group waits 36 hours by default before another one. A change you make by hand in the console starts the cooldown too. A learning-phase hold, 5 days by default, stops changes to a campaign, ad group or keyword still in its learning phase.
- **Budget caps.** You can cap all daily budgets together, cap any single campaign or ad set, set a bid ceiling, and set a date after which spend cannot go up.
- **Spend-up always needs a yes.** Every spend increase waits for your approval in the conversation. A standing grant can only cover spend-down changes such as bid cuts, and the script rejects any grant that would raise spend.
- **Settled data for cuts.** Cuts are not judged on days whose late orders have not arrived yet, unless the miss is too large for late orders to explain.

If you want to be the only one who can record an approval, a deny rule in your Claude Code settings makes the agent show you the approve command so you run it yourself. This guards against drift, such as an agent reading "sounds good" as a yes. It is not a defense against a hostile agent.

### Amazon, Meta, and CSV exports

The skill ships with adapters and presets for Amazon Sponsored Products and for Meta Ads. They read each platform's API responses and its exports without hand-mapped columns. If you have no API or MCP connector, export the reports from the console or Ads Manager and the skill works from those files. When you read a setting off the console, the skill records it as your statement. If a file's columns match no preset, the skill writes a column map for it.

Some numbers are not exact, such as revenue rebuilt from a rounded ROAS, or revenue counted over a wider attribution window. The skill marks those as bounds and never treats them as exact.

Another platform needs only a written adapter, with no code changes. Until you approve that adapter, the skill runs the platform in dry run only.

### How it differs from a CSV bid optimizer

Most ad optimizers take one CSV and return a list of bid changes. Media Buyer does more of the job, and refuses more. It reads live data first and falls back to exports. It treats each change as a small test with a review date, and a later run checks whether the change worked. It limits how often the account changes, so the account is not changed faster than its data can show results. It covers budgets, pauses and negative keywords as well as bids. And the numbers come from a script, not the model: the agent supplies the judgment, but it cannot type a number the raw files do not contain.

### What you need

Claude Code or Codex, and Python 3.9 or later. The script uses only the Python standard library and never touches the network. The download is `media-buyer.zip` with a single `media-buyer/` folder inside. Unzip it into `~/.claude/skills/` or `~/.codex/skills/`, so that `SKILL.md` ends up at `~/.claude/skills/media-buyer/SKILL.md`, then restart the agent. To start, ask for a dry run, such as "Review my Amazon ads account in dry run."

Single-user commercial license.

## Requires

- Python 3.9+
- Optional: Amazon Ads or Meta Ads API or MCP

CSV exports work without an API or MCP connection.

## Known limitations

Ships adapters for Amazon Sponsored Products and Meta Ads only. Any other platform or ad type needs a written adapter, and runs in dry run until you approve it. It makes changes only through a connector your agent already has. Without one, you make each change yourself from the steps it gives. It runs when you start a review, daily or weekly, and is not a real-time bidder. Needs Python 3.9 or later.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Media Buyer: Amazon and Meta Ads Reviews With Guardrails skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### Will it raise my bids or budgets without asking?

No. Every spend increase waits for your yes in the conversation, and the approval is tied to that exact change. A standing grant can only cover spend-down changes such as bid cuts, and the script rejects a config that grants automatic spend increases.

### Do I need an API or MCP connector?

No. If your agent has an Amazon Ads or Meta Ads connector, the skill reads reports and current settings through it. Otherwise, download the reports as CSV from the Amazon Ads console or Meta Ads Manager and it works from those files. Without a connector that can write, it gives you the exact steps for each change and records what you see in the console afterwards.

### Will it change my account on the first run?

No. A new workspace starts in dry run, which changes nothing in the account. You switch to apply mode in config.json when the proposals look like ones you would have made. Even then it makes one change per run by default, and you can raise that limit later.

### How does it handle conversions that arrive late?

The default window ends a few days back, past the platform's reporting delay. A bid cut or pause passes on recent data only when the miss is too large for late orders to explain. Otherwise the skill asks for an older window whose numbers have settled. Each change gets a review date, 7 days by default, and a later run compares before and after to keep, revert or extend it.

### What is in the download?

media-buyer.zip with one media-buyer/ folder. It holds SKILL.md, the mb.py script (Python standard library only, no network), adapters and presets for Amazon Sponsored Products and Meta Ads, a config template, the run-file reference and the license. Unzip it into ~/.claude/skills/ or ~/.codex/skills/ and restart the agent.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
