MCP tools

Import live campaign

Import a live campaign (one that exists in the ad account on the ad platform but NOT yet in Koast) into a Koast batch, so it becomes both reportable AND extendable.

Tool name: import-live-campaign.

Import a live campaign (one that exists in the ad account on the ad platform but NOT yet in Koast) into a Koast batch, so it becomes both reportable AND extendable. Idempotent, if a Koast batch already wraps this providerCampaignId, returns its campaignLaunchId and alreadyExisted: true instead of duplicating. For metrics, fatigue or details on a campaign from list-account-campaigns that has no Koast batch yet, call this FIRST to obtain a campaignLaunchId, then run normal launch-scoped reporting tools against it. THIS IS ALSO HOW YOU ADD TO A LIVE CAMPAIGN: import it, then add-adset / add-ads against the returned campaignLaunchId and launch-campaign, and the new ad sets and ads are published INTO the existing campaign rather than into a new one. Never tell a user that adding an ad set to a live campaign has to be done in the ad platform's own manager, it does not.

When to use

Wrap a live campaign that is not yet in Koast in a Koast batch, so it becomes reportable and can be extended. The first step for BOTH "report on this live campaign" and "add an ad set / ads to this live campaign", once imported, add-adset and add-ads work against it and launch-campaign publishes into the same campaign. Idempotent: re-running on the same providerCampaignId returns the existing batch instead of duplicating. It is also the first step to pause, activate or rename a live campaign that is not in Koast: find it with list-account-campaigns, import it, read get-campaign-tree, then pause or activate with update-node. It creates a Koast batch, so it is a write: unavailable in plan mode and refused to a read-only credential.

Access

PropertyValue
Required scopewrite
PublishesNo
Read-onlyNo
DestructiveNo
IdempotentYes
Open worldYes

Input

FieldTypeRequiredDescription
providerCampaignIdstringYesCampaign id on the ad platform (the raw id from list-account-campaigns rows).
brandIdintegerNoOptional Koast brand id. When omitted, uses the brand from the current context. Required from a multi-account dashboard chat.
titlestringNoOptional batch title; defaults to the campaign name server-side. At most 200 characters.

Output

FieldTypeRequiredDescription
campaignLaunchIdstringYes
alreadyExistedbooleanYes
titlestring | nullYes

REST equivalent

POST /v1/brands/{brandId}/launches/import, Import live campaign. CLI: koast import-live-campaign.

On this page