Pause or activate in Microsoft Advertising
msads_set_statusSets a campaign, ad group, ad or keyword to Active or Paused. An ad group needs its campaignId; an ad or keyword needs its adGroupId, and an ad its adType (Type from msads_ads).
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": {
"adAccountId": "<adAccountId>",
"level": "<level>",
"id": "<id>",
"status": "<status>"
},
"name": "msads_set_status"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Id of the campaign, ad group, ad or keyword. | |
| level | Yes | What is changed. | |
| adType | No | Ad Type (level ad), from msads_ads. | |
| status | Yes | Active or Paused. | |
| accountId | No | Fezola accountId of the connected Microsoft account (type microsoft_ads in list_accounts). Optional: the adAccountId is looked up in every connected Microsoft account. | |
| adGroupId | No | Parent ad group Id (levels ad and keyword). | |
| campaignId | No | Parent campaign Id (level ad_group). | |
| adAccountId | Yes | Microsoft Advertising ad account id (Id returned by msads_list_accounts). |