Skip to content
  • MCP server

How to connect AdsGPT to Gemini CLI

With one command, Gemini CLI can read your metrics on Google Ads, Meta Ads and more, spot wasted spend and prepare new campaigns from the terminal.

Try it free — 50 actions/moOfficial documentation

Gemini CLI is Google's open-source agent for the terminal. With the AdsGPT MCP server, Gemini can run your accounts on Google Ads, Meta Ads and more: pull reports, adjust budgets or plan Performance Max campaigns.

The integration is MCP only: add it with gemini mcp add or by editing settings.json, and complete authentication with /mcp auth.

What you can do

  • Instant reports

    Performance by account, campaign, ad group or ad set and ad, on any network and period.

  • Find wasted spend

    Spot campaigns, ads or search terms that spend without converting and decide what to pause.

  • Adjust budgets and statuses

    Raise or lower budgets and pause or enable campaigns, ad groups and ads, with your approval.

  • Create and launch campaigns

    Plan a campaign with copy, images and videos and launch it on one or several networks at once. It is created paused.

Platforms compatible with Gemini CLI

From Gemini CLI you already manage Google Ads. The other networks already work in the AdsGPT assistant and are coming soon to Gemini CLI. Pick one to see its guide.

Requirements

  • An AdsGPT account with at least one ad platform connected.
  • Gemini CLI installed.

Step-by-step setup

Add the MCP server

  • MCP server
  1. Add it for your user (without -s user it is added only to the current project):
    Terminal
    gemini mcp add --transport http adsgpt https://mcp.adsgpt.dev -s user
  2. Or edit ~/.gemini/settings.json:
    ~/.gemini/settings.json
    {
      "mcpServers": {
        "adsgpt": {
          "httpUrl": "https://mcp.adsgpt.dev"
        }
      }
    }
  3. In Gemini CLI, authenticate:
    Gemini CLI
    /mcp auth adsgpt
  4. Ask, for example: "How did my Google Ads campaigns do last week?"

Use httpUrl, not url: in Gemini CLI, url is for the older SSE transport.

Example prompts

  • “How did my Google Ads campaigns do last week?”
  • “Compare Meta Ads and TikTok Ads performance this month, by campaign.”
  • “Find the search terms that spend without converting in the last 30 days.”
  • “Raise the daily budget of my best-converting campaign by 20%.”
  • “Launch the same campaign on Google Ads, Meta Ads and LinkedIn Ads with a budget of 300 for 30 days.”
  • “Plan a Performance Max campaign to get leads for my clinic in Madrid.”

Security and approvals

  • You sign in with OAuth 2.1: you never copy or share API keys.
  • The ads:read scope comes first; ads:write is only requested the first time a tool changes something.
  • Every change shows the current and new value and waits for your approval.
  • New campaigns launch paused unless you ask otherwise.
  • AdsGPT acts with your role on the account and receives tool calls, never your conversation.

Frequently asked questions

Why httpUrl and not url?

Gemini CLI reserves url for the SSE transport. AdsGPT uses Streamable HTTP, which is configured with httpUrl.

Can I add it to a single project?

Yes. Run gemini mcp add without the -s user option inside the project folder.

Is Gemini CLI the same as the Gemini app?

No. This guide is for Gemini CLI, the terminal agent, which supports MCP servers.

    • Native
    • Plugin
    • MCP server

    OpenAI

    ChatGPT

    The native AdsGPT plugin brings your accounts on Google Ads, Meta Ads and more into ChatGPT: reports, optimization and new campaigns in one conversation.

    • Plugin
    • MCP server

    Anthropic

    Claude

    A plugin with marketing skills or an MCP connector for Claude on the web and desktop. Analyze and optimize Google Ads, Meta Ads and more by chatting.

    • Plugin
    • MCP server

    Anthropic

    Claude Code

    Plugin with /adsgpt skills or an MCP server for Claude Code. Google Ads, Meta Ads and more reports and optimization from the terminal.

Gemini CLI

Start managing your ads from your AI

Create your AdsGPT account, connect your ad networks and add the integration in minutes.