# Hermoso: create_x_ads_post: Write · Hermoso developer docs

> Machine-readable twin of https://hermoso.ai/docs/reference/ads/create_x_ads_post/. 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_post

# `create_x_ads_post`

Write a promoted-only X post for ads

Area: X ADS LEAD GEN, CARDS, MEDIA, PROMOTED-ONLY POSTS · [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

Write an X post FOR ADS — PROMOTED-ONLY by default (X's 'nullcast'): it never appears on the brand's timeline or in followers' feeds and serves only as an ad, so you can test several creatives without spamming followers. Carry a card (cardUri from create_x_ads_card) OR up to 4 media (mediaKeys from upload_x_ads_media). Posted as the ad account's own promotable user (asUserId to choose). Pass lineItemId to attach it straight to a line item (which stays PAUSED). promotedOnly:false makes it a normal public post and needs confirmPublic:true. Read back from X. Free.

## 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)

`text` `string` post text

`cardUri` `string` card_uri from create_x_ads_card; use instead of mediaKeys

`mediaKeys` `string[]` up to 4 media keys from upload_x_ads_media

`name` `string` internal name in ads.x.com

`promotedOnly` `boolean` default true

`confirmPublic` `boolean` true is required with promotedOnly:false, to publish a public post

`asUserId` `string` promotable user id to post as; omit for the ad account's own user

`conversationSettings` `"EVERYONE" | "FOLLOWING" | "MENTIONED_USERS"` who may reply to the post: EVERYONE, FOLLOWING or MENTIONED_USERS

`videoTitle` `string` title of a video post

`videoDescription` `string` description of a video post

`videoCta` `"VISIT_SITE" | "WATCH_NOW"` call-to-action button on a video post: VISIT_SITE or WATCH_NOW

`videoCtaUrl` `string` URL the video call-to-action links to

`utm` `object` UTM tags object: source, medium, campaign, content, term; appended to the destination URL

`utm.source` `string` utm_source tag appended to websiteUrl; a tag already in the URL is kept

`utm.medium` `string` utm_medium tag appended to websiteUrl; a tag already in the URL is kept

`utm.campaign` `string` utm_campaign tag appended to websiteUrl; a tag already in the URL is kept

`utm.content` `string` utm_content tag appended to websiteUrl; a tag already in the URL is kept

`utm.term` `string` utm_term tag appended to websiteUrl; a tag already in the URL is kept

`lineItemId` `string` attach to this line item right away

## 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_post`.

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

`{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"create_x_ads_post","arguments":{}}}`
**CLI**

`hermoso call create_x_ads_post --json '{}'`

## 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

- [create_x_ads_card](https://hermoso.ai/docs/reference/ads/create_x_ads_card/) Build an X ad card
- [upload_x_ads_media](https://hermoso.ai/docs/reference/ads/upload_x_ads_media/) Upload media to an X ad account
- [list_x_ads_cards](https://hermoso.ai/docs/reference/ads/list_x_ads_cards/) List X ad cards
- [list_x_ads_posts](https://hermoso.ai/docs/reference/ads/list_x_ads_posts/) List the posts an X ad account can promote
- [preview_x_ads_post](https://hermoso.ai/docs/reference/ads/preview_x_ads_post/) Preview an X ad post
- [list_x_ads_media](https://hermoso.ai/docs/reference/ads/list_x_ads_media/) List an X ad account’s Media Library
- [get_x_ads_leads](https://hermoso.ai/docs/reference/ads/get_x_ads_leads/) Read the leads from an X lead form
- [update_x_ads_lead_form](https://hermoso.ai/docs/reference/ads/update_x_ads_lead_form/) Change an X lead form
- [create_x_ads_lead_form](https://hermoso.ai/docs/reference/ads/create_x_ads_lead_form/) Create an X lead form
- [list_x_ads_lead_forms](https://hermoso.ai/docs/reference/ads/list_x_ads_lead_forms/) List X lead forms

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