Get ad posts
x_ads_get_tweetsFetch tweets behind ads by ID to detect card_uri and media. Use this instead of generic post fetching to verify ad creative.
Instructions
Fetch posts behind ads (tweet_id from x_ads_list_ads) WITH card_uri and media. Use this, not a generic post fetch, to tell whether an ad has a card/image. Up to ~200 ids. tweet_type default PUBLISHED (includes promoted-only).
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>",
"tweet_ids": "<tweet_ids>"
},
"name": "x_ads_get_tweets"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tweet_ids | Yes | ||
| account_id | Yes | Ads API account id from x_ads_list_accounts, e.g. 18ce55v2od2 | |
| tweet_type | No |