Today you manage X Ads from the AdsGPT assistant, on the web and in the mobile app. In VS Code + GitHub Copilot it shows as coming soon: AdsGPT already works with Google Ads from VS Code + GitHub Copilot 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.
- VS Code with GitHub Copilot and agent mode enabled.
- On Copilot Business or Enterprise, an organization that allows MCP servers.
Step-by-step setup
Connect X Ads in AdsGPT
- Sign in to app.adsgpt.dev as the organization owner.
- Open Plugins and choose X Ads.
- Sign in with the X account that has access to your ad accounts and authorize AdsGPT.
- 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 VS Code + GitHub Copilot: install in one click
- MCP server
- Recommended
- With VS Code installed, open the AdsGPT install link and confirm.
- On first connect, VS Code opens the AdsGPT sign-in page: pick your organization and approve.
From the terminal
- MCP server
- Run:
Terminal code --add-mcp '{"name":"adsgpt","type":"http","url":"https://mcp.adsgpt.dev"}' - Open Copilot chat in agent mode and sign in when prompted.
With mcp.json
- MCP server
- Run MCP: Open User Configuration (all workspaces) or edit
.vscode/mcp.json(one workspace):.vscode/mcp.json { "servers": { "adsgpt": { "type": "http", "url": "https://mcp.adsgpt.dev" } } } - You can also run MCP: Add Server, choose HTTP and enter
https://mcp.adsgpt.dev.
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:readscope comes first;ads:writeis 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.
Tips
- In VS Code the key is
servers, notmcpServersas in other clients.
Frequently asked questions
Can I use X Ads in VS Code + GitHub Copilot?
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, VS Code + GitHub Copilot lists it as coming soon.
Do I have to connect X Ads inside VS Code + GitHub Copilot?
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 VS Code + GitHub Copilot, 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.