Aller au contenu principal

Campaign Staging Draft

Create a pre-deploy campaign draft, preview its GAM ExecutionPlan, then deploy with a confirmation token.

REST endpoints

MethodPathDescriptionCredits
POST/api/jobsCreate a campaign job as a staging draft0
GET/api/jobs/{id}Read the staging draft state0
POST/api/jobs/{id}/deployment-planPreview the deployment plan0
POST/api/jobs/{id}/deployDeploy with a confirmation token5
GET/api/jobs/{id}/forecastRead the available forecast0

MCP tools

ToolDescriptionCredits
campaign(action='create_draft')Create a campaign staging draft with a 7-day TTL0
campaign(action='deploy', dryRun=true)Deploy preview: mutations, cost, risks and token0
campaign(action='deploy', confirmationToken=...)Deploy the confirmed plan to GAM5
campaign(action='read')Re-read the live projection or the draft depending on the state0

Examples

Create then preview a draft

{
  "tool": "campaign",
  "arguments": { "action": "create_draft", "name": "Q3 Acme Corp" }
}
// -> { "jobId": "job_8b2a", "status": "draft", "expireAt": "2026-06-12T00:00:00Z" }

{
  "tool": "campaign",
  "arguments": { "action": "deploy", "jobId": "job_8b2a", "dryRun": true }
}
// -> { "executionPlan": { "mutations": [...], "estimatedCost": 5, "confirmationToken": "tok_9c3f" } }

Notes

  • • The staging draft separates the campaign intent from the GAM mutation.
  • • The confirmation token is tied to the plan and expires quickly.
  • • Without a valid token, the confirmed deploy is refused.