# Hermoso: create_x_ads_card: Build an X ad · Hermoso developer docs

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

# `create_x_ads_card`

Build an X ad card

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

Create an X card — the big image/video with a headline or button that an X ad clicks through on. ONE destination: websiteUrl (a website card, with a headline `title`), leadFormId (opens an X lead form — headline, or a button with buttonLabel), or an app (iosAppId/googlePlayAppId + countryCode, a button). Media: mediaKey, or 2–6 mediaKeys for a swipeable card (upload_x_ads_media). utm {source,medium,campaign,content,term} is appended to websiteUrl without overwriting the URL's own. Read back from X; a card is used by create_x_ads_post(cardUri). 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)

`name` required `string` internal name for the card

`mediaKey` `string` one media key from upload_x_ads_media (single image or video)

`mediaKeys` `string[]` 2-6 media keys from upload_x_ads_media, for a swipeable card

`title` `string` headline, for website and lead-form cards

`websiteUrl` `string` destination URL for a website card. A Hermoso page works: publish_page’s live URL, or get_page adDestinations.

`utm` `object` UTM tags object: source, medium, campaign, content, term; appended to websiteUrl

`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

`leadFormId` `string` X lead form id from list_x_ads_lead_forms, for a lead-form card

`buttonLabel` `"BOOK" | "CONNECT" | "INSTALL" | "OPEN" | "ORDER" | "PLAY" | "SHOP"` button text shown on a lead-form or app card

`iosAppId` `string` iOS App Store app id, for an app card

`googlePlayAppId` `string` Google Play package id, for an app card

`countryCode` `string` 2-letter store country for an app card, e.g. US

`iosDeepLink` `string` iOS deep link for an app card

`googlePlayDeepLink` `string` Android deep link for an app card

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

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

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

`hermoso call create_x_ads_card --json '{"name":"<string>"}'`

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

- [upload_x_ads_media](https://hermoso.ai/docs/reference/ads/upload_x_ads_media/) Upload media to an X ad account
- [create_x_ads_post](https://hermoso.ai/docs/reference/ads/create_x_ads_post/) Write a promoted-only X post for ads
- [list_x_ads_media](https://hermoso.ai/docs/reference/ads/list_x_ads_media/) List an X ad account’s Media Library
- [list_x_ads_cards](https://hermoso.ai/docs/reference/ads/list_x_ads_cards/) List X ad cards
- [get_x_ads_leads](https://hermoso.ai/docs/reference/ads/get_x_ads_leads/) Read the leads from an X lead form
- [list_x_ads_posts](https://hermoso.ai/docs/reference/ads/list_x_ads_posts/) List the posts an X ad account can promote
- [update_x_ads_lead_form](https://hermoso.ai/docs/reference/ads/update_x_ads_lead_form/) Change an X lead form
- [preview_x_ads_post](https://hermoso.ai/docs/reference/ads/preview_x_ads_post/) Preview an X ad post
- [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)
