# Hermoso: create_x_ads_promoted_tweet · Hermoso developer docs

> Machine-readable twin of https://hermoso.ai/docs/reference/ads/create_x_ads_promoted_tweet/. Generated from the shipped page. Do not edit by hand.
> Full agent guide: https://hermoso.ai/llms.txt · MCP: https://app.hermoso.ai/mcp

[Docs](https://hermoso.ai/docs/) / [Tool reference](https://hermoso.ai/docs/reference/) / [Ad campaign management](https://hermoso.ai/docs/reference/ads/) / create_x_ads_promoted_tweet

# `create_x_ads_promoted_tweet`

Attach a post to an X line item (paused) destructive

Area: X ADS CUSTOM AUDIENCES + CONVERSION API · [Ad campaign management](https://hermoso.ai/docs/reference/ads/). Generated from the running MCP server, like the rest of the [tool reference](https://hermoso.ai/docs/reference/).

## Description

Attach an existing X post to a line item so the line item has a creative — the LAST piece of the tree, and without it nothing can ever serve however the statuses are set. The tweet id is the number at the end of the post URL (x.com/<handle>/status/<id>), not the URL. Several ids may be attached at once; X creates one promoted-tweet row per post. ATTACHMENT IS VERIFIED by re-reading the line item's own promoted posts rather than by trusting X's echo, and if that read cannot run the note says UNCONFIRMED instead of claiming success. Everything Hermoso built above this is PAUSED, so attaching a post starts no spend. Print the returned note verbatim.

## Parameters

Parameter Type Description

`adAccountId` `string` X ad account id (list_x_ads_accounts); omit if only one is shared

`accountId` `string` older name for adAccountId (MCP only)

`lineItemId` required `string` from create_x_ads_line_item

`tweetIds` required `string[]` post ids — digits only, from the end of the post URL

## Example call

Every required parameter is shown, filled from the schema where it gives a value and otherwise with a placeholder naming the type. Replace the placeholders with real values. The same call works on the MCP server, the CLI and `POST https://app.hermoso.ai/v1/tools/create_x_ads_promoted_tweet`.

**MCP** (`tools/call`)

`{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"create_x_ads_promoted_tweet","arguments":{"lineItemId":"<string>","tweetIds":"<array>"}}}`
**CLI**

`hermoso call create_x_ads_promoted_tweet --json '{"lineItemId":"<string>","tweetIds":"<array>"}'`

## Credits

Credits are spent only on two things: running an AI model (image, video, voice, text, planning, post-production) and Ad Spy research. See [Credits & costs](https://hermoso.ai/docs/credits/).

## Related tools

- [send_x_ads_conversions](https://hermoso.ai/docs/reference/ads/send_x_ads_conversions/) Send conversions to X (Conversion API)
- [add_x_ads_targeting](https://hermoso.ai/docs/reference/ads/add_x_ads_targeting/) Target an X ads line item
- [manage_x_ads_conversion_events](https://hermoso.ai/docs/reference/ads/manage_x_ads_conversion_events/) X Pixel conversion events (list / create / update)
- [x_ads_geo_search](https://hermoso.ai/docs/reference/ads/x_ads_geo_search/) Find X ads location ids
- [update_x_ads_audience](https://hermoso.ai/docs/reference/ads/update_x_ads_audience/) Change an X custom audience
- [x_ads_report](https://hermoso.ai/docs/reference/ads/x_ads_report/) X ads performance report
- [create_x_ads_audience](https://hermoso.ai/docs/reference/ads/create_x_ads_audience/) Create an X custom audience
- [list_openai_ads_conversion_events](https://hermoso.ai/docs/reference/ads/list_openai_ads_conversion_events/) List ChatGPT Ads conversion events
- [list_x_ads_audiences](https://hermoso.ai/docs/reference/ads/list_x_ads_audiences/) List X custom audiences
- [create_openai_ads_pixel](https://hermoso.ai/docs/reference/ads/create_openai_ads_pixel/) Create a ChatGPT Ads pixel

[All 759 Ad campaign management tools](https://hermoso.ai/docs/reference/ads/) · [tools.json](https://hermoso.ai/docs/reference/tools.json)
