Create ad post
x_ads_create_tweetCreate a promoted-only tweet (nullcast) to use as an ad creative. Provide media or a card URI; returns a tweet ID ready for promotion via ad creation.
Instructions
Create a promoted-only (nullcast) post. media_keys XOR card_uri. Returns tweet id; promote with x_ads_create_ad. nullcast default true. If the intended creative failed to upload or process, STOP. Do not promote a still, a source image, or a pre-existing library asset.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"account_id": "<account_id>",
"text": "<text>"
},
"name": "x_ads_create_tweet"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | ||
| card_uri | No | ||
| nullcast | No | ||
| account_id | Yes | Ads API account id from x_ads_list_accounts, e.g. 18ce55v2od2 | |
| as_user_id | No | ||
| media_keys | No |