Add posts to an X Ads ad group
x_ads_add_postsPromote existing posts in an X Ads ad group by post ID (the number at the end of the post URL). The ads follow the ad group's status: they spend only if the ad group and campaign are on.
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": {
"campaign": "<campaign>",
"ad_group": "<ad_group>",
"post_ids": "<post_ids>"
},
"name": "x_ads_add_posts"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| folder | No | Client folder name. | |
| account | No | X Ads account name or ID. Optional when only one is enabled. | |
| ad_group | Yes | Ad group (line item) name or ID. | |
| campaign | Yes | Campaign name or ID. | |
| language | No | Language of the card: the language the user is writing in. | |
| post_ids | Yes |