Close Out Campaign
close_out_campaignRecord a finished campaign's actuals: spend (with currency), impressions, clicks and attributed orders — at least one. Close-out opens the day after the campaign's last day in the workspace's time zone (see campaign.closeOutOpensOn). Recording again replaces the previous actuals; identical actuals change nothing. It does not change the plan's state or forecast. Identify the plan by planId, or by externalSource plus externalId.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "close_out_campaign"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| notes | No | Close-out notes, max 1000 characters. | |
| planId | No | The plan id (GUID). | |
| preview | No | Step 1 of the required two-step write: set true to validate and receive a structured preview (per-field old→new actuals) plus a single-use previewReceipt. Nothing is recorded until the commit call. | |
| externalId | No | The campaign's external id, with externalSource. | |
| actualSpend | No | Actual total spend. | |
| actualClicks | No | Actual clicks. | |
| externalSource | No | The campaign's external source, with externalId. | |
| idempotencyKey | No | Caller-generated idempotency key; required with previewReceipt to commit. | |
| previewReceipt | No | Step 2 of the required two-step write: the receipt returned by the preview call. Supply together with a fresh idempotencyKey to commit; calls without it are refused. | |
| actualImpressions | No | Actual impressions. | |
| actualSpendCurrency | No | ISO 4217 currency of actualSpend, e.g. USD. | |
| actualAttributedOrders | No | Orders the ad platform attributed to the campaign. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | No | ||
| plan | No | ||
| outcome | No | ||
| preview | No | ||
| expiresAt | No | ||
| actionItemId | No | ||
| confirmation | No | ||
| correlationId | No | ||
| approvalResult | No | ||
| idempotencyKey | No | ||
| previewReceipt | No | ||
| idempotentReplay | No |