MCP tools

Add ads

Create one or many ads under ad sets.

Tool name: add-ads.

Create one or many ads under ad sets. Pass an ads: [...] array, each entry targets its own adsetNodeId and may attach creativeId and/or copyGenerationId in the same call, avoiding follow-up updateNode. Unknown adsetIds return in notFound, per-ad create errors in failed; the rest are created (partial success is fine). When the user provided explicit per-ad names in their message, pass each literal name verbatim per ads[].name, naming convention applies only when the user did not specify names.

When to use

Create 1-N ads in one call (heterogeneous per-ad creative/copy assignments allowed). The unified ad-creation tool, handles single and bulk. Unknown adsetIds return in notFound; per-ad create errors in failed.

Access

PropertyValue
Required scopewrite
PublishesNo
Read-onlyNo
DestructiveNo
IdempotentNo
Open worldNo

Input

FieldTypeRequiredDescription
campaignLaunchIdstringYesCampaign launch ID (a.k.a. batch ID). Read it from the Current Context block when one is in scope, or resolve it from a mention via listAccountCampaigns / the campaign tree when the user @-mentioned a different launch.
adsobject[]YesAds to create (1-100). Each entry targets a specific adsetNodeId with optional creativeId and copyGenerationId. At least 1 item, at most 100 items.
ads[].adsetNodeIdstringYesTarget ad set ID for this ad
ads[].namestringNoName for the new ad
ads[].creativeIdnumberNoNumeric creative ID to attach on create
ads[].copyGenerationIdnumberNoNumeric copy generation ID (from generateCopy) to attach on create

Output

The tool catalog does not declare an output schema for this tool.

REST equivalent

POST /v1/brands/{brandId}/launches/{launchId}/ads, Add ads. CLI: koast add-ads.

On this page