Skip to content
  • X Ads
  • MCP server

How to use X Ads in Gemini CLI with AdsGPT

X Ads already works in the AdsGPT assistant and is coming soon to Gemini CLI. Keep AdsGPT installed in Gemini CLI and connect X Ads once: when it arrives, there's nothing else to set up.

X Ads is coming soon to your AI. It already works in the AdsGPT assistant, on the web and in the mobile app. In ChatGPT, Claude and other AI it shows as coming soon.

Try it free — 50 actions/moOfficial documentation

Today you manage X Ads from the AdsGPT assistant, on the web and in the mobile app. In Gemini CLI it shows as coming soon: AdsGPT already works with Google Ads from Gemini CLI and will add X Ads to its MCP server without you reinstalling anything.

X Ads promotes your posts to the audience you choose on X. With AdsGPT you get reports by campaign, line item or promoted post, with impressions, engagements, clicks, likes, reposts, replies and follows; you activate or pause; adjust budgets, bids and targeting; and create reach campaigns with text and image posts.

What you can do with X Ads

  • Engagement by post

    Impressions, engagements, link clicks, likes, reposts and follows for each promoted post.

  • Budgets and bids

    Change the daily or total budget and set a target cost per thousand impressions or X's automatic bid.

  • Reach campaigns

    1 to 5 posts with text, image and link, published as ads only and created paused.

Requirements

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

Step-by-step setup

Connect X Ads in AdsGPT

    1. Sign in to app.adsgpt.dev as the organization owner.
    2. Open Plugins and choose X Ads.
    3. Sign in with the X account that has access to your ad accounts and authorize AdsGPT.
    4. Your X Ads accounts show up in AdsGPT and any member can use them from the AdsGPT assistant, as their role allows.

    Add AdsGPT to Gemini CLI: 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 for X Ads

    • “Which promoted posts on X got the most engagement last week?”
    • “Pause the X line items with a CPM above 8 dollars.”
    • “Create an X reach campaign for my product launch in the US.”

    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

    Can I use X Ads in Gemini CLI?

    Not yet. X Ads already works in the AdsGPT assistant, on the web and in the app, and is coming soon to the MCP server. Until then, Gemini CLI lists it as coming soon.

    Do I have to connect X Ads inside Gemini CLI?

    No. X Ads is connected once in AdsGPT and is then available to your organization.

    Can my X Ads campaigns be changed without permission?

    No. Reads run instantly, but every change shows the current and new value and waits for your approval. New campaigns are created paused.

    Can I manage several networks at once?

    In the AdsGPT assistant you already work with Google Ads, Meta Ads, TikTok Ads, LinkedIn Ads, X Ads, Reddit Ads, OpenAI Ads and Unity Ads. From Gemini CLI, Google Ads is available today and the rest are coming soon. A campaign on several networks is created on each with the same name, so your reports tie them together.

    Which X Ads campaigns can I create?

    Reach (awareness) campaigns with 1 to 5 text and image posts, targeted by place, language, interests, gender and age. Custom audiences and cards are made in ads.x.com.

    What permissions do I need on X?

    The account administrator or ad manager role (an analyst only reads) and a funding instrument that can pay.

    X Ads with artificial intelligence →
    X Ads + Gemini CLI

    Start managing your ads from your AI

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