<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Roy Azran</title>
    <description>The latest articles on DEV Community by Roy Azran (@royazran_74).</description>
    <link>https://dev.to/royazran_74</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4262359%2Fc59d48dc-4b3d-4291-ac13-c1842e9651ab.png</url>
      <title>DEV Community: Roy Azran</title>
      <link>https://dev.to/royazran_74</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/royazran_74"/>
    <language>en</language>
    <item>
      <title>Find wasted Google Ads spend with Claude in 5 minutes (an MCP server walkthrough)</title>
      <dc:creator>Roy Azran</dc:creator>
      <pubDate>Tue, 24 Nov 2026 10:12:16 +0000</pubDate>
      <link>https://dev.to/royazran_74/find-wasted-google-ads-spend-with-claude-in-5-minutes-an-mcp-server-walkthrough-2b0d</link>
      <guid>https://dev.to/royazran_74/find-wasted-google-ads-spend-with-claude-in-5-minutes-an-mcp-server-walkthrough-2b0d</guid>
      <description>&lt;p&gt;If you run Google Ads, you know the search terms report. It is the most useful page in the account and the most tedious one to read: thousands of rows, sorted badly, and the money leaks sit somewhere in the middle.&lt;/p&gt;

&lt;p&gt;This post shows how to hand that job to an AI assistant through &lt;strong&gt;MCP&lt;/strong&gt; (Model Context Protocol), the open standard Claude, ChatGPT, Cursor and others use to call external tools. We'll connect a hosted MCP server to a real ad account and ask, in plain English, which search terms spent money and converted nothing.&lt;/p&gt;

&lt;p&gt;I built the server used here, &lt;a href="https://mcp-ads.com" rel="noopener noreferrer"&gt;MCP Ads&lt;/a&gt;, so take the product bits with the obvious grain of salt. The MCP part works the same with any server.&lt;/p&gt;

&lt;h2&gt;
  
  
  What MCP actually does here
&lt;/h2&gt;

&lt;p&gt;An MCP server exposes &lt;strong&gt;tools&lt;/strong&gt;, functions with typed parameters and a description. When you ask a question, the model decides which tool to call, the server runs it against the real API, and the model reads the result.&lt;/p&gt;

&lt;p&gt;For ads that means the model never sees your password or API keys. You sign in to each platform with its official OAuth screen, and the server calls the Google Ads API on your behalf, one request at a time, only when you ask.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Connect the server (2 minutes)
&lt;/h2&gt;

&lt;p&gt;The endpoint is a remote, Streamable HTTP MCP server:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;https://mcp-ads.com/mcp-slim
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Claude (web or desktop):&lt;/strong&gt; Settings → Connectors → &lt;em&gt;Add custom connector&lt;/em&gt;, paste the URL, then sign in when Claude opens the OAuth page.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Claude Code:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;claude mcp add --transport http mcp-ads https://mcp-ads.com/mcp-slim
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Cursor&lt;/strong&gt; (&lt;code&gt;~/.cursor/mcp.json&lt;/code&gt;):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;"mcpServers"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;"mcp-ads"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nl"&gt;"url"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"https://mcp-ads.com/mcp-slim"&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;After the first sign-in, open the MCP Ads dashboard and connect the ad accounts you want the assistant to see: Google Ads, Meta, GA4, Search Console and so on. The assistant only ever sees what you connected.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Check it works.&lt;/strong&gt; First message:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;List the ad accounts you can see through MCP Ads, then tell me which one spent the most last week.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  2. Ask the expensive question
&lt;/h2&gt;

&lt;blockquote&gt;
&lt;p&gt;Which Google Ads search terms spent money without converting in the last 30 days? Group them by campaign and suggest negatives.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Behind the scenes the model calls a search-terms tool with a date range, gets one row per search term, triggering keyword and match type (the same rows as the Google Ads UI), and filters for cost &amp;gt; 0 and conversions = 0.&lt;/p&gt;

&lt;p&gt;A typical answer looks like this (&lt;strong&gt;illustrative numbers, not a real account&lt;/strong&gt;):&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Campaign&lt;/th&gt;
&lt;th&gt;Search term&lt;/th&gt;
&lt;th&gt;Cost&lt;/th&gt;
&lt;th&gt;Clicks&lt;/th&gt;
&lt;th&gt;Conv.&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Brand - Search&lt;/td&gt;
&lt;td&gt;&lt;code&gt;free alternative to &amp;lt;brand&amp;gt;&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;$84&lt;/td&gt;
&lt;td&gt;41&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Services - Search&lt;/td&gt;
&lt;td&gt;&lt;code&gt;how to do it yourself&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;$63&lt;/td&gt;
&lt;td&gt;29&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Services - Search&lt;/td&gt;
&lt;td&gt;&lt;code&gt;jobs near me&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;$38&lt;/td&gt;
&lt;td&gt;17&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;…followed by a suggested negative keyword list, with match types.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. Make the change, safely
&lt;/h2&gt;

&lt;blockquote&gt;
&lt;p&gt;Add "free", "diy" and "jobs" as phrase-match negatives to the Services campaign.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;This is where most people get nervous, so here is how the server behaves:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Every write is a separate tool, marked as a write.&lt;/strong&gt; Clients that ask before running non-read-only tools (Claude does) show you the exact call first.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;New campaigns, ad groups and ads are always created paused.&lt;/strong&gt; Nothing new spends until you turn it on.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Status and budget changes are marked destructive&lt;/strong&gt;, so the client asks before running them.&lt;/li&gt;
&lt;li&gt;Every call is logged.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  4. Things worth asking next
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;em&gt;Compare this week to last week across Google and Meta. What changed most?&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;
&lt;em&gt;Which landing pages get traffic from ads but have a bounce rate above the site average?&lt;/em&gt; (GA4)&lt;/li&gt;
&lt;li&gt;&lt;em&gt;Which Search Console queries get impressions but almost no clicks?&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;
&lt;em&gt;What ads is a competitor running on Google in the US right now?&lt;/em&gt; (public Ads Transparency Center, no connection needed)&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Wrapping up
&lt;/h2&gt;

&lt;p&gt;The interesting part isn't any one report. It's that "where did the money go?" turns into one question instead of six tabs, and the follow-up ("fix it") is one more message that waits for your yes.&lt;/p&gt;

&lt;p&gt;MCP Ads is open source (MIT) on &lt;a href="https://github.com/RoyAzran/mcp-ads" rel="noopener noreferrer"&gt;GitHub&lt;/a&gt; if you want to self-host or read how the tools are built. The hosted version is $49/month with a 7-day free trial. Questions and criticism welcome in the comments; I read all of them.&lt;/p&gt;

</description>
      <category>mcp</category>
      <category>ai</category>
      <category>marketing</category>
      <category>tutorial</category>
    </item>
  </channel>
</rss>
