Skip to content
Get MCP AdsGet MCP Ads, home

x_ads_create_ad_post

Compose a promoted-only ("nullcasted") post to use as an ad creative. A write tool that previews before it changes anything, one of 26 X Ads tools…

Compose a promoted-only ("nullcasted") post to use as an ad creative. The post never appears on the author's profile or followers' timelines and spends nothing by itself ; attach it to a line item with promote_post. Preview by default. Ask the user to approve the exact account, target and parameters before confirm:true.

Source
X Ads
Kind
Write
Discovery
Reachable through search_tools and run_tool
Account parameter
account_id
Endpoint
https://mcp.getmcpads.com/x-ads/mcp

ParametersLink to this section

NameTypeRequiredNotes
account_idstringRequiredX Ads account ID selected in Sources.
as_user_idstringRequiredUser ID to post on behalf of (must be a promotable user of the account, e.g. the account's own ha...
card_uristringOptionalCard URI to attach (e.g. a website card).
conversation_settingsstringOptionalWho can reply to the post (default EVERYONE). One of: EVERYONE, FOLLOWING, MENTIONED_USERS.
media_keysstringOptionalComma-separated media keys of pre-uploaded media to attach (required unless text is provided).
textstringOptionalPost text (required unless media_keys is provided).
trim_userbooleanOptionalReturn only the author's user ID instead of the full user object in the response (default false).
tweet_modestringOptionalResponse rendering mode (default compat). One of: compat, extended.
video_ctastringOptionalCall-to-action button on an attached video; set the target URL with video_cta_value. One of: VISIT_SITE, WATCH_NOW.
video_cta_valuestringOptionalDestination URL for the video_cta button; required when video_cta is set.
video_descriptionstringOptionalDescription shown under an attached video (1-200 characters).
video_titlestringOptionalTitle shown under an attached video (1-70 characters).
confirmbooleanOptionalFalse previews only; true applies this exact change after explicit human confirmation. Default: false.

Calling itLink to this section

jsonThrough run_tool, since it is not announced
{
  "name": "run_tool",
  "arguments": {
    "name": "x_ads_create_ad_post",
    "args": {
      "account_id": "<string>",
      "as_user_id": "<string>"
    }
  }
}
Esc

Type to search