Skip to content
Get MCP AdsGet MCP Ads, home
View as Markdown

x_ads_create_media_library_item

Register an existing media key as a named item in the account's media library.

Register an existing media key as a named item in the account's media library. Use list_media_library to see media already registered to the account. Preview by default. Ask the user to approve the exact account, target and parameters before confirm:true.

Source
X Ads
Kind
Write
Discovery
Reachable through search_tools and run_tool
Account parameter
account_id
Endpoint
https://mcp.getmcpads.com/x-ads/mcp

ParametersLink to this section

NameTypeRequiredNotes
account_idstringRequiredX Ads account ID selected in Sources.
descriptionstringOptionalVideo description, shown under the video. Videos only.
file_namestringOptionalMedia file name (1-255 characters).
media_keystringRequiredMedia key of an existing media asset (e.g. 13_875943225764098048). Required by the legacy API.
namestringOptionalMedia asset name, shown in campaign setup UIs (1-100 characters).
poster_media_keystringOptionalMedia key of an uploaded image to use as the video poster frame. Videos only.
titlestringOptionalVideo title, shown on the video itself. Videos only.
confirmbooleanOptionalFalse previews only; true applies this exact change after explicit human confirmation. Default: false.

Calling itLink to this section

jsonThrough run_tool, since it is not announced
{
  "name": "run_tool",
  "arguments": {
    "name": "x_ads_create_media_library_item",
    "args": {
      "account_id": "<string>",
      "media_key": "<string>"
    }
  }
}
Esc

Type to search