AdKit

Connect Gemini CLI to AdKit

Connect Gemini CLI to AdKit through the CLI or the MCP server and manage Meta, Google, TikTok, and Reddit ads.

Connect Gemini CLI to AdKit and manage Meta, Google, TikTok, and Reddit ads from the terminal. Pick the CLI path (recommended) or the MCP server.

Paste this into Gemini CLI. It installs the AdKit CLI and connects it for you:

Help me set up AdKit.

1. Install the CLI: npm i -g @adkit/cli
2. Run `adkit setup` and send me the login URL so I can finish authentication.
3. Wait for me to finish login in the browser.
4. Run `adkit checkin --agent gemini`.
5. Tell me if AdKit is connected and ready. If not, tell me what failed.

If you cannot install or run the AdKit CLI here, stop and tell me to use the MCP setup instead.

Alternative: MCP server

  1. Add the server in Gemini CLI:
    gemini mcp add --transport http adkit https://mcp.adkit.so
    
  2. Authenticate the server inside Gemini CLI:
    /mcp auth adkit
    

    Finish signing in through the browser before continuing.
  3. Paste this to confirm it works:
    Use the AdKit MCP server you just added and run the AdKit checkin tool with agentId: "gemini".
    Tell me if AdKit is connected and ready. If not, tell me what failed.
    

What you can do

Once connected, Gemini can pull your live campaigns, draft budget and targeting changes, generate ad creatives, and research competitors. Nothing goes live on its own: every change is saved as a draft for you to review and publish.

Troubleshooting

Zero AdKit tools, or every call fails with an auth error. The step people skip: run /mcp auth adkit and finish the browser sign-in. Adding the server alone is not enough.

/mcp doesn't list adkit. Re-run the gemini mcp add command above, then /mcp auth adkit.

adkit: command not found (CLI path). The CLI is not installed in that environment. Run npm i -g @adkit/cli and try again.

It worked before and stopped (MCP path). The authorization expires after about 30 days without use. Run /mcp auth adkit again. CLI connections use an API key that doesn't expire; check them with adkit status.

Need a hand? Reach out and we'll help.

Related docs