# MarketingRouter — Meta ads for your AI agent

Let your agent handle the ads. You build what’s next. MarketingRouter connects ad images and copy, Meta campaign preparation, owner approvals, purchase reporting and bounded budget controls through one API. Owners review the same workspace in a dashboard.

## Connect your agent

For Codex, Claude Code, Cursor, or any agent that can call HTTP APIs. The agent starts the authorization flow and returns an owner approval link and matching user code. The owner signs in and grants scoped access; the agent keeps its credentials private. Connection does not authorize payments or ad spending.

### Copy this setup prompt

Help me prepare Meta ads for [PRODUCT URL] using MarketingRouter.

Read https://marketingrouter.com/docs-markdown/quickstart and check https://marketingrouter.com/api/v1/capabilities. Use https://marketingrouter.com/openapi.json for the API contract.

1. Connect through the agent authorization flow. Give me the approval link and matching user code; keep credentials private.
2. Ask for my product details, audience, and budget. Check setup and tell me which owner actions are needed.
3. Propose the ads and spending plan. Get my permission before paid creative generation, payment, or launch.
4. Keep the campaign in draft until setup, funding, and my approval are complete. After launch, report delivery, spend, and available purchase results.

If anything is unavailable, preserve the draft and tell me the exact next step. If you cannot call HTTP APIs, say so before starting.

## Start here

- Read [llms.txt](/llms.txt), [OpenAPI 3.1](/openapi.json), and [the agent quickstart](/docs-markdown/quickstart).
- GET /api/v1/capabilities reports live_spend_enabled, billing_enabled and creative.enabled separately. Do not infer current delivery or payment availability from an illustration or a marketing headline.
- Sandbox campaign testing is available and never spends money or delivers ads. The dashboard offers an unauthenticated labeled demo. Owners sign in to approve an agent connection or create a scoped key manually.
- Paid campaign launch and new payments require platform account activation, enabled service gates, and workspace readiness. See capabilities for the current state. Meta can review, reject or delay ads; no fixed launch time or customer outcome is guaranteed.

## From product details to a reviewed campaign

1. Give the agent the product facts, audience and budget. It uses PUT /api/v1/setup to prepare a new or existing Facebook Page, asks the owner to authorize the identity, and follows GET /api/v1/setup next_actions. Install and verify destination tracking.
2. Generate and revise private ad images and copy through /api/v1/creatives. Supply product facts or request a website brief with traceable source quotes. Generation uses an included, bounded allowance; check availability and the authorized task scope before starting. Revisions preserve the original. Publishing creative does not launch an ad.
3. Prepare the campaign, validate checkout and tracking, confirm funding, and obtain owner approval of the exact plan before activation. Read performance and purchase economics; use revision-checked, idempotent controls for pauses and budget changes.

## Human oversight and cost guards

Owners approve the campaign, media spending ceiling and optional customer-cost guard. Agents may propose guards but cannot approve, reset or remove them. Guarded campaigns start with a bounded test. Reliable mature purchases and reconciled fees are required before gradual automatic allocation increases. Broken tracking or exhausted authority requests a protective pause. The owner can inspect decisions and pause campaigns. Customer-cost targets are not guaranteed hard CAC limits, and provider delays can affect stopping delivery.

[Cost guard guide](/docs-markdown/cost-guards). [Owner approvals](/docs-markdown/approvals). [Meta setup](/docs-markdown/setup).

## Measure customers, not only clicks

GET /api/v1/reports/campaigns accepts campaign, date and performance filters. Merchant-backend checkout receipts connect ad spend to distinct paying customers, refunds and net revenue. Customer cost includes reconciled advertising fees; unknown fees remain unknown. Install the receipt/health integration and review a test purchase before relying on purchase metrics.

[Purchase tracking](/docs-markdown/purchases). [Reporting](/docs-markdown/reporting). [Measurement connections](/docs-markdown/measurement).

## Understand the price

Sandbox campaign testing is free. New plans charge 5% of actual media spend. Owners approve the media ceiling plus the maximum service fee. New deposits become advertising credit after payment costs, deducted at cost. Exact processing costs and credit are verified after payment; applicable tax and the checkout total are shown before paying. Creative generation uses an included, bounded allowance without an extra generation fee or advertising-credit debit. A quote does not charge money. Review [pricing](/page-markdown/pricing) and [funding](/docs-markdown/funding).

## About the landing-page visuals

The hero shows an illustrative ad for Relay, a fictional AI customer-support software product, with a benefit headline, a support-inbox preview and ad call to action. It is composed in readable HTML/CSS, not a live app or an actual customer's campaign. Its pictured call to action is part of the example ad. The other visuals show an example coffee creative and owner budget control. The reporting preview uses illustrative figures, not customer results: $300 ad spend, $15 example fees, 12 paying customers and $720 revenue, yielding $26.25 all-in cost per customer. These examples are not evidence of live campaign performance.

Meta (Facebook and Instagram) is the only advertising channel. [Explore the dashboard](/dashboard). [Creative workflow](/docs-markdown/creatives). [Full documentation](/llms-full.txt).