Explore

Ads

Facebook Ads MCP and Google Ads MCP: How to Run Launch Ads Through Your AI Agent

How to connect Claude Code, Codex or another MCP client to Meta's ads MCP server and Google's Google Ads MCP server, set safe permissions, and run a small first launch ad test without handing an agent your budget.

Published 2026-06-18.

Score your launch page freeRead the blog

Ad platforms are now reachable from AI agents. Meta has opened an ads MCP server to developers, and Google publishes a Google Ads MCP server. That means you can ask Claude Code, Codex or another MCP client to pull performance data, draft campaigns, or, with the right permissions, create them.

It also means an agent can spend real money. This guide covers how to connect each platform, how to set permissions so the agent cannot do more than you intend, and how to run a small first ad test for a launch.

Test a video against the same promise

Keep the audience, landing URL, optimization event, attribution window, and offer the same in both arms. Change the creative: the existing static scan message versus a real narrated scan. See the actual 54-second scan demo before writing an ad that promises a result the product cannot show.

Use a dedicated campaign label and separate content labels, such as scan_demo_test with score_static and self_scan_video. Preserve Meta's campaign, ad set, and ad IDs in the URL. Do not copy a browser session ID into an ad URL.

Make the primary outcome a persisted report with an email captured within 24 hours of starting the scan. Compare cost per outcome, not click price alone. Report recoverable scan failures and missing attribution separately. Keep the paid-order check separate until a verified checkout receipt joins to the buyer. Your agent should prepare the exact creative, audience, budget, and stop rule for review before starting delivery.

Before you run any ads

Paid traffic amplifies whatever your page already does. If the page does not explain the product, show it working and offer one clear next step, ads just buy you more bounces.

Check three things first:

  • The landing page has one primary call to action and a way to capture interest (signup or waitlist).
  • Analytics records visits and the signup or purchase, and you can see traffic by source.
  • You know who the ad is for, specifically enough to describe their situation in one sentence.

The launch readiness checklist scores these in about 30 minutes, or paste your URL at launchbuddy.ai/scan for a free score.

Meta (Facebook and Instagram) ads through MCP

What it is

In July 2026 Meta announced an ads MCP server1 that lets developers connect their own AI applications to Meta's advertising tools. According to Meta's announcement, it covers creating and editing campaigns, ad sets and ads; custom audiences; catalogs; performance reporting (spend, impressions, CTR, ROAS and more); signal diagnostics; and experiments such as A/B tests.

How to connect it

Per Meta's announcement, setup happens in your Meta developer app:

  1. In the Meta developer dashboard, select (or create) your app.
  2. Go to Use cases, then Add use cases.
  3. Choose Ads and monetization, then select "Create & manage ads with ads MCP server", and save.
  4. Choose authentication: OAuth through Facebook Login for Business, or an access token you manage yourself.
  5. Follow the linked developer documentation for the server details and add it to your MCP client.

If you manage ad accounts for other businesses, Meta requires additional access and app review.

Set agent rules before anything else

The most important feature for a solo builder is agent rules. Meta describes rules that define what an agent can and cannot do on an ad account, for example reading performance data while being blocked from changing budgets, campaigns or creative. Meta's own suggestion is to start accounts read-only or approval-required and widen permissions over time.

A sensible progression:

  1. Week 1: read-only. The agent reports on performance and drafts ideas.
  2. Week 2: the agent can create new campaigns paused, and you turn them on yourself.
  3. Later, if at all: the agent can adjust budgets within a cap you set.

Google documents a Google Ads MCP server2 that connects AI agents to the Google Ads API. At the time of writing, Google lists it as read-only in the current release: it can query and analyze your account, but it cannot change bids, pause campaigns or create assets. The code and setup instructions are in the googleads/google-ads-mcp repository3.

Read-only is still useful. You can ask an agent to:

  • Summarize last week's search terms and flag irrelevant queries to add as negatives.
  • Compare cost per conversion across campaigns.
  • Find ads with high impressions and low click-through rate, and draft replacement headlines.

You then make the changes in Google Ads yourself, or through another tool you trust.

Prompts that work

These prompts assume the relevant MCP server is connected and the agent has read access.

Weekly performance summary:

Using the Meta ads MCP, summarize the last 7 days for ad account [id]:
spend, impressions, clicks, CTR, landing page views, and the conversion
event [event name] by campaign and by ad. Flag any ad with spend above
[amount] and zero conversions. Do not change anything. End with three
suggested actions, each with the evidence behind it.

Draft a paused test campaign:

Draft (do not publish) a Meta campaign to test two angles for [product].
Audience: [description]. Daily budget cap: [amount]. Objective: [leads or
traffic]. Create 2 ad sets, one per angle, each with 3 ads using the copy
below and the creative in /ads. Leave everything paused and give me the
list of objects created with links so I can review them in Ads Manager.

Search term cleanup on Google Ads:

Using the Google Ads MCP (read-only), list search terms from the last 30
days for campaign [name] that got clicks but no conversions. Group them
into themes and propose negative keywords for each theme. I will add them
myself.

A small first launch ad test

For a first test, the goal is learning, not scale. Keep it small and specific.

  • Budget: an amount you are comfortable losing completely, spread over 5 to 7 days.
  • Structure: one campaign, two angles (for example problem-led versus outcome-led), two or three ads per angle.
  • Creative: real product visuals. A 9:16 cut of your product demo video works well.
  • Destination: the same landing page for every ad, with a UTM tag per ad.
  • Success event: one event you care about, such as a signup.

How to read the result:

What you seeLikely causeWhat to change
Few clicksThe hook or audience is offNew opening lines, a narrower audience
Clicks, no signupsThe page does not deliver on the ad's promiseMatch the headline to the ad, fix the page's biggest gap
Signups, nobody returnsThe product or onboarding misses the expectationTalk to the people who signed up
One angle clearly betterYou learned somethingShift budget to that angle and write new variants of it

Benchmarks vary widely by market, country and product, so compare your ads against each other rather than against an industry average. For how to read the first days of data without overreacting, see the day-two launch dashboard.

Mistakes to avoid

  • Giving an agent write access on day one. Start read-only, then paused drafts.
  • Running ads before the page is ready. Fix the page first; it is cheaper than the clicks.
  • Changing several things at once. Change one variable per test so you know what worked.
  • Letting the agent invent claims. Ad copy must match what the product does. Never let an agent add testimonials, numbers or results you did not provide.
  • Storing access tokens in your repository. Keep them in environment variables or your MCP client's secure config, and never commit them.

If you want a starting set of ads

If writing the first ads is what is holding you back, LaunchBuddy's ad pack makes five ads pointed at your page for $29. You still choose where and whether to run them.

Before spending anything on traffic, make sure the page converts the clicks you will pay for. Paste your URL at launchbuddy.ai/scan for a free launch-readiness score and the one gap to fix first.

Sources and notes

  1. Meta for Developers, "Meta ads MCP server" (July 16, 2026): https://developers.facebook.com/blog/post/2026/07/16/meta-ads-mcp-server/
  2. Google Ads API, MCP server documentation: https://developers.google.com/google-ads/api/docs/developer-toolkit/mcp-server
  3. googleads/google-ads-mcp on GitHub: https://github.com/googleads/google-ads-mcp

Related LaunchBuddy resources

How to Make a Product Demo Video for Your Launch With an AI AgentLaunch Readiness Checklist: A 100-Point Self-Assessment for Solo BuildersProduct Launch Metrics: The Day-Two Dashboard and Daily Checks for an MVPHow to Get Your First Users: A Distribution Playbook for Products Built With AI
Facebook Ads MCP and Google Ads MCP: How to Run Launch Ads Through Your AI Agent