> ## Documentation Index
> Fetch the complete documentation index at: https://docs.dust.tt/llms.txt
> Use this file to discover all available pages before exploring further.

# X Ads

> Let your agents report on X Ads campaign performance and reach, and create and manage campaigns, targeting, audiences, and creatives.

With the X Ads tool, your agents can report on campaign performance and reach, and create and manage campaigns, line items, promoted posts, targeting, audiences, creatives, and conversion tags. X builds and maintains this MCP server: an admin connects it once, then anyone can add it to an agent.

## What your agent can do in X Ads

X maintains the list of actions, and it can change at any time. See [X's MCP server documentation](https://docs.x.com/x-ads-api/mcp) for the current list. The tools listed in **Spaces** > **Tools** > **X Ads** are the ones your agents can use.

## Before you start

* **In Dust:** you need to be an admin to connect X Ads.
* **In X:** you need an X account with access to the ads accounts you want to use. The tool can only reach the ads accounts your X account can already access.

## Connect X Ads

> [!NOTE]
>
> Only workspace admins can connect X Ads.

**1. Open the tools of your workspace**

Go to **Spaces** > **Tools** and click **Add tools**.

**2. Pick X Ads**

Select **X Ads**.

**3. Sign in**

Keep **Personal accounts**, selected by default, or pick **Shared account**. Click **Setup connection**, then sign in with your X account.

X keeps one connection per X account: if you connect the same X account again in Dust, the previous connection stops working.

## Add X Ads to an agent

**1. Open your agent in the Agent Builder**

Create an agent, or open one you can edit.

**2. Add the tool**

In **Capabilities and knowledge**, click **Add capabilities** and select **X Ads**.

**3. Say which accounts and campaigns to use**

In the instructions, say which ads account and campaigns the agent should work on, and what to report, like spend, reach, or results over a period.

By default, tools that list and read accounts, campaigns, and stats run without asking (**Never ask**). Tools that create, update, or delete campaigns, line items, promoted posts, targeting, audiences, creatives, or conversion tags ask for approval every time (**High**). Admins can change the level of each tool in **Spaces** > **Tools** > **X Ads** > **Tools & stakes**:

* **High:** needs explicit user approval.
* **Low:** users can completely disable confirmations.
* **Never ask:** runs automatically.

Tools that X adds later start at **High** until an admin changes them.

## Related

> [card] [Third-party MCP servers](https://docs.dust.tt/docs/user-documentation/agents/tools/preconfigured-mcp-servers)
>
> All the third-party MCP servers you can connect.

> [card] [Personal vs Shared Credentials](https://docs.dust.tt/docs/user-documentation/admins/tools-management/personal-vs-shared-credentials.md)
>
> How each connection type works for tools.

> [card] [Adding an MCP server](https://docs.dust.tt/docs/user-documentation/admins/tools-management/adding-an-mcp-server.md)
>
> Add tools to your workspace and choose who can use them.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.