Skip to content

Create an X Ads web event tag

Create a website conversion event tag (pixel); the returned id can be set as a line item's primary_web_event_tag Preview by default. Works on your own X Ads account, connected through Get MCP Ads. The preview is free; the change costs $0.05 when you confirm it. Needs account id.

Inputs

1 required
Account ID
X Ads account ID selected in SourcesRequired · account_id
Click window
Post-click attribution window in days: 1, 7, 14, 30, 60 or 90Optional · click_window
Name
Conversion event name, shown in campaign setup UIsOptional · name
Retargeting enabled
Whether users who trigger this tag are collected for retargetingOptional · retargeting_enabled
Type
Conversion type: SITE_VISIT, PURCHASE, DOWNLOAD, SIGN_UP or CUSTOMOptional · type
View through window
Post-view window in days: 0, 1, 7, 14, 30, 60 or 90; max click_windowOptional · view_through_window
Confirm
False previews only; true applies this exact change after explicit human confirmationOptional · confirm
Workspace ID
Authorized workspace ID from list_accounts/list_workspacesOptional · workspace_id
Reason
Why, in the person's words or from the evidence (e.g. CPA twice the target for 7 days)Optional · reason

Pricing

Price
Free preview, $0.05 per applied change
Billing
The provider’s price, with no markup. Billed for measured usage.

Call

Your agent reads the schema and the price with inspect_tool before it runs the tool.

MCP call
cURL command
TypeScript
Tool ID

Alternatives

X Ads campaign management

Connect your agent to 2,400+ tools for free

Sign in with Google or GitHub. No card required.