activate_ad
Finish the setup wizard of an ad and ACTIVATE it. Use this when configure_ad_step reports nextStepType 'summary' and the user wants the ad live. In AUTO product mode this publishes EVERY matching product to the LIVE ad channel; for a test set manual mode first (set_ad_manual_mode) — see activationBehavior in get_ad. Returns {integrationId, stepType:'summary', status, nextStepType:null, transitions[], message}; 'validation_failed' when the product filter matches nothing. Export and submission run ASYNC — poll ad_status. Needs confirm:true after the user agrees. ad_id is from list_ads. project_id is OPTIONAL (inferred for a single-project customer; project_id_required otherwise — then call list_projects).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"ad_id": "<ad_id>"
},
"name": "activate_ad"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ad_id | Yes | integrationId of the ad (from list_ads). | |
| confirm | No | true only after the user approved; without it the call returns confirm_required and nothing runs. | |
| project_id | No |