| App | Microsoft Ads |
| Operation ID | microsoft_ads_update_keyword_status |
| Type | Action |
| Connection | microsoft_ads (required) |
| Credits per run | 1 |
| Agent / MCP tool | Yes |
| Requires approval | Yes (write operation) |
Inputs
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
account | object or array of object or MicrosoftAdsAccountItem or string or integer | Yes | - | Select the Microsoft Ads account to update keywords in. |
update_type | string or SelectableOption | Yes | - | Choose whether to update a single keyword or multiple keywords at once. Options: ‘single’ or ‘bulk’. |
ad_group_id | string or SelectItem | No | - | Enter the ad group ID that contains the keyword. Required for single update. |
keyword_id | string or SelectItem | No | - | Enter the keyword ID to update. Required for single update. |
keyword_status | string or SelectableOption | No | - | Select the new keyword status. Options: ACTIVE, PAUSED, or DELETED. Required for single update. |
structured_data | array (also accepts a comma-separated string) | No | - | Structured data with ‘ad_group_id’, ‘keyword_id’, and ‘status’ fields for each row. Required for bulk update. |
MicrosoftAdsAccountItem
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
value | string | Yes | - | |
label | string | Yes | - | |
customerId | string | No | - | The Microsoft Ads customer ID used for REST CustomerId headers. If omitted, it is resolved from the account ID. |
SelectItem
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
value | string | Yes | - | The value of the selectable item. |
label | string | Yes | - | The label of the selectable item, used for display purposes. If not provided, defaults to the value. |
SelectableOption
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
value | string | Yes | - | |
label | string | Yes | - |
Output
Type:Dict
Returns Microsoft Ads keyword status update results.
Fields: message, updated_count, results
