LinkedIn Ads in Gemini
Adwarp is an open-source MCP server and CLI that connects Gemini in your terminal, Google's Antigravity CLI, to LinkedIn Ads. Add it with 1 command, then ask Gemini to size audiences, draft campaigns and pull reports.
$ agy mcp add adwarp npx -y adwarp mcp$ agy
> Launch the ad groups in brief.json, all as drafts.
adwarp.launch_from_brief brief.json: DRAFT
12 ad groups and 12 ads, each with its own audience
Nothing is live. Review them in Campaign Manager.
01Set up
Set up in 3 steps
Create your LinkedIn developer app
Add the Advertising API product. It's free, and approval usually takes a day or 2.
Sign in from your terminal
Adwarp opens your browser for LinkedIn's approval and stores the token locally.
npx -y adwarp auth loginAdd it to Antigravity CLI
1 command, and Gemini can use all 28 LinkedIn tools.
agy mcp add adwarp npx -y adwarp mcp
Prefer to edit the config?
agy mcp add writes this entry to ~/.gemini/config/mcp_config.json. Put it in .agents/mcp_config.json instead to add it to 1 project, and type /mcp in agy to check that adwarp is connected. On Gemini CLI, run gemini mcp add -s user adwarp npx -y adwarp mcp instead.
{
"mcpServers": {
"adwarp": { "command": "npx", "args": ["-y", "adwarp", "mcp"] }
}
}02Try these prompts
5 prompts to try first
$ agy
> How many heads of marketing at fintech companies in the UK can we reach?
adwarp.search_targeting industries "financial services": 3 matches
adwarp.estimate_audience titles + Head + UK + fintech: 1,420 members
03Results
Why running ads from Gemini gets better results
Checks happen daily
Performance is 1 question in the terminal you already have open, so problems get fixed the same day.
Both platforms in 1 session
The same local server runs the LinkedIn and Google Ads tools, so 1 question compares them.
More variants tested
A new ad group is 1 ask instead of 20 clicks, so more audiences and messages get tried.
Is there a LinkedIn Ads connector for Gemini?
Not from LinkedIn or Google. Adwarp is an open-source MCP server that gives Gemini access to LinkedIn Ads through your own developer app.
Does it work in Gemini CLI?
Yes. Run gemini mcp add -s user adwarp npx -y adwarp mcp, which writes the same entry to ~/.gemini/settings.json. Antigravity CLI replaced Gemini CLI for individual accounts on June 18, 2026.
Does it work in the Gemini app?
Not yet. The Gemini app adds remote MCP servers that sign in with OAuth, which the hosted endpoint doesn't support yet.
Can Gemini spend money on its own?
No. Every campaign, ad group and ad starts as a draft, and it goes live only when you explicitly ask or switch it on in Campaign Manager.
Where are my credentials stored?
In a local folder locked to your user. With the hosted endpoint they travel as headers, are used in memory and are never stored.
Does it run locally or on the hosted endpoint?
Either. Run Adwarp on your machine, or add the hosted endpoint to Antigravity CLI with your own LinkedIn app credentials as headers. List uploads, CRM audiences and the change journal need your machine.
| Feature | Local | Hosted |
|---|---|---|
| Campaigns, audience sizing, reporting | Yes | Yes |
| Ad Library through the official API | Yes | Yes |
| CSV list uploads | Yes | No |
| Salesforce audiences | Yes | No |
| HubSpot audiences | Yes | No |
| Change journal and lift | Yes | No |