Skip to content

Connect X Ads to an AI assistant

Connect X Ads to Claude, ChatGPT, Codex or any MCP client, what to ask it once it is connected, and the 51 tools behind the answers.

guides/sources/x-ads.md

Both readings are on this page.

For you

What the answer looks like, and what to type to get it.

Campaigns, ad groups, promoted posts, image/video libraries, website cards and carousels, targeting, conversion events and native performance.

Connect it

  1. Open the dashboard and choose this platform.
  2. Approve the consent screen. The gateway stores an encrypted refresh token, never a password.
  3. Tick the accounts to expose. Nothing is readable until you do.
  4. Paste the endpoint into your assistant, or use the shared one for every platform at once.
text · X Ads on its own endpoint
https://mcp.getmcpads.com/x-ads/mcp

What to ask

text
Read campaigns, ad groups and native performance for my selected X advertiser.
Prepare a campaign and ad group with a budget and schedule, keeping both paused.
Upload this image or video, wait for processing and register it in the media library.
Create a website card or carousel, then attach its promoted-only post to my paused ad group.
Review and change the location and interest targeting of this ad group.
Create a website conversion event tag and read back its configuration.

What answers each one

What answers each one
QuestionTools
Read campaigns, ad groups and native performance for my selected X advertiser.x_ads_list_campaigns, x_ads_list_line_items, x_ads_get_account_stats
Prepare a campaign and ad group with a budget and schedule, keeping both paused.x_ads_create_campaign, x_ads_create_line_item
Upload this image or video, wait for processing and register it in the media library.x_ads_upload_media, x_ads_get_media_upload_status, x_ads_create_media_library_item
Create a website card or carousel, then attach its promoted-only post to my paused ad group.x_ads_create_card, x_ads_create_ad_post, x_ads_promote_post
Review and change the location and interest targeting of this ad group.x_ads_list_targeting_criteria, x_ads_search_targeting_locations, x_ads_search_targeting_interests, x_ads_add_targeting_criterion, x_ads_remove_targeting
Create a website conversion event tag and read back its configuration.x_ads_create_web_event_tag, x_ads_get_web_event_tag

What it can change

Create paused campaigns and ad groups; update budgets, bids, schedules and targeting. Upload PNG, JPEG, GIF and MP4 media, manage library assets, website cards and conversion events, and attach promoted-only posts. Every write previews before confirmation.

Images, video and website cards

Upload PNG or JPEG images up to 5 MB, animated GIFs up to 15 MB and MP4 videos up to 16 MB. The Campaign Launcher uploads your files to X itself before it builds the website cards and carousels. Reconnect an older X Ads connection in Sources to grant media.write. Customers authorize their own X account through Get MCP Ads; they do not need to create a developer application.

  1. Call get_capabilities with platform x_ads, then describe_tool for the operation you need. Advanced tools remain callable through run_tool even when your assistant's initial tool list is short.
  2. Preview x_ads_upload_media with the selected account_id, media_type and base64 file bytes in media_base64. Confirm the reviewed upload. It returns a media ID and media_key; it does not create an ad.
  3. For video or GIF processing, call x_ads_get_media_upload_status using the returned media ID. Respect check_after_secs and wait for processing_info.state to become succeeded before using the asset.
  4. Register the media_key with x_ads_create_media_library_item. Use the library read, update and delete tools to inspect, rename or remove library entries.
  5. Create a promoted-only post with x_ads_create_ad_post, or create a website card with x_ads_create_card and attach its card_uri to a new post. Cards support a single image/video or a carousel of 2 to 6 media keys with one website destination. Replacing a card requires creating a new one.
  6. Attach the post with x_ads_promote_post. Read it back with x_ads_list_account_posts, x_ads_get_promoted_post or x_ads_list_promoted_posts, and inspect x_ads_list_post_previews. Every write needs its own preview and confirmation. Keep the parent campaign and ad group paused until delivery is explicitly approved.

Campaigns, targeting and conversion events

Create campaigns and ad groups in pause, then update names, bids, budgets, schedules, placements and frequency settings. Budgets and schedules belong to ad groups (line items). Search location/interest targeting, add or remove criteria, and read them back. Website event tags can be created, read, updated and deleted; creating a tag does not install a pixel or generate conversion traffic.

Permissions, billing and limits

  • Free permits reads; Pro, Team and Enterprise permit writes within the selected accounts and provider permissions. Media tools require ads.read, ads.write and media.write on the X connection. The status tool is read-only but still requires those provider scopes.
  • X API credits, advertising budgets and account verification are separate. A 402 credits-depleted upload error concerns the developer application: contact Get MCP Ads support for a hosted connection. Buying advertising credit or changing your Get MCP Ads plan does not resolve that error.
  • Uploads are not automatically retried. If a partial failure returns an allocated media ID, retain it and inspect its status before starting another upload. The tool accepts file bytes, not an arbitrary download URL.
  • X controls verification, advertiser eligibility, creative review and objective prerequisites. Premium verification may block delivery while paused creation still succeeds. App-install and app-engagement objectives require a suitable mobile app.
  • App/lead cards, multiple website destinations per carousel and files larger than the upload limits are outside this connector's current scope. X Ads is not yet included in the gateway's cross-platform business reviews or creative galleries. Native performance and post-preview tools remain available.

For your agent

The tool sequence, the parameters that matter, and what will be refused.

Both readings as Markdown: /guides/sources/x-ads.md

Platform id
x_ads
Tool prefix
x_ads_
Account parameter
account_id
Dedicated endpoint
https://mcp.getmcpads.com/x-ads/mcp
Tools
51, 23 of which write
Announced by default
x_ads_list_ads_accounts
Metrics
75, see /docs/sources/x-ads/metrics
Dimensions
4, see /docs/sources/x-ads/dimensions

Scope requested from the platform

Scope requested from the platform
ScopeGrantsAllows writes
ads.readRead authorized X Ads accounts, campaigns, creatives, targeting and performance.No
ads.writeCreate and manage X Ads campaigns, ad groups, targeting and promoted posts.Yes
media.writeUpload images and videos for X Ads creatives.Yes
offline.accessRenew the X authorization without another sign-in.No

Reaching a tool that is not announced

text
search_tools({ task: "..." })      find it
describe_tool({ name: "..." })     read its schema
run_tool({ name, args })           execute, with the same checks

What will refuse you

  • An account not ticked by the owner. Call list_accounts and use a account_id from it.
  • A write on a plan without writes. The tool is absent from the list and refused if called anyway.
  • A write without confirm: true returns a preview and applies nothing. That is not an error.
  • A call to this platform on another platform's dedicated endpoint. The refusal names the URL that serves it.

Questions this source answers

Questions this source answers
QuestionTools, in order
Read campaigns, ad groups and native performance for my selected X advertiser.x_ads_list_campaigns then x_ads_list_line_items then x_ads_get_account_stats
Prepare a campaign and ad group with a budget and schedule, keeping both paused.x_ads_create_campaign then x_ads_create_line_item
Upload this image or video, wait for processing and register it in the media library.x_ads_upload_media then x_ads_get_media_upload_status then x_ads_create_media_library_item
Create a website card or carousel, then attach its promoted-only post to my paused ad group.x_ads_create_card then x_ads_create_ad_post then x_ads_promote_post
Review and change the location and interest targeting of this ad group.x_ads_list_targeting_criteria then x_ads_search_targeting_locations then x_ads_search_targeting_interests then x_ads_add_targeting_criterion then x_ads_remove_targeting
Create a website conversion event tag and read back its configuration.x_ads_create_web_event_tag then x_ads_get_web_event_tag

Images, video and website cards

Upload PNG or JPEG images up to 5 MB, animated GIFs up to 15 MB and MP4 videos up to 16 MB. The Campaign Launcher uploads your files to X itself before it builds the website cards and carousels. Reconnect an older X Ads connection in Sources to grant media.write. Customers authorize their own X account through Get MCP Ads; they do not need to create a developer application.

  1. Call get_capabilities with platform x_ads, then describe_tool for the operation you need. Advanced tools remain callable through run_tool even when your assistant's initial tool list is short.
  2. Preview x_ads_upload_media with the selected account_id, media_type and base64 file bytes in media_base64. Confirm the reviewed upload. It returns a media ID and media_key; it does not create an ad.
  3. For video or GIF processing, call x_ads_get_media_upload_status using the returned media ID. Respect check_after_secs and wait for processing_info.state to become succeeded before using the asset.
  4. Register the media_key with x_ads_create_media_library_item. Use the library read, update and delete tools to inspect, rename or remove library entries.
  5. Create a promoted-only post with x_ads_create_ad_post, or create a website card with x_ads_create_card and attach its card_uri to a new post. Cards support a single image/video or a carousel of 2 to 6 media keys with one website destination. Replacing a card requires creating a new one.
  6. Attach the post with x_ads_promote_post. Read it back with x_ads_list_account_posts, x_ads_get_promoted_post or x_ads_list_promoted_posts, and inspect x_ads_list_post_previews. Every write needs its own preview and confirmation. Keep the parent campaign and ad group paused until delivery is explicitly approved.

Campaigns, targeting and conversion events

Create campaigns and ad groups in pause, then update names, bids, budgets, schedules, placements and frequency settings. Budgets and schedules belong to ad groups (line items). Search location/interest targeting, add or remove criteria, and read them back. Website event tags can be created, read, updated and deleted; creating a tag does not install a pixel or generate conversion traffic.

Permissions, billing and limits

  • Free permits reads; Pro, Team and Enterprise permit writes within the selected accounts and provider permissions. Media tools require ads.read, ads.write and media.write on the X connection. The status tool is read-only but still requires those provider scopes.
  • X API credits, advertising budgets and account verification are separate. A 402 credits-depleted upload error concerns the developer application: contact Get MCP Ads support for a hosted connection. Buying advertising credit or changing your Get MCP Ads plan does not resolve that error.
  • Uploads are not automatically retried. If a partial failure returns an allocated media ID, retain it and inspect its status before starting another upload. The tool accepts file bytes, not an arbitrary download URL.
  • X controls verification, advertiser eligibility, creative review and objective prerequisites. Premium verification may block delivery while paused creation still succeeds. App-install and app-engagement objectives require a suitable mobile app.
  • App/lead cards, multiple website destinations per carousel and files larger than the upload limits are outside this connector's current scope. X Ads is not yet included in the gateway's cross-platform business reviews or creative galleries. Native performance and post-preview tools remain available.

Manage your ads from your AI assistant

Start for free

Free with 1 ad account, no card. Pro is free for 7 days.