> ## Documentation Index
> Fetch the complete documentation index at: https://docs.markifact.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Update Keyword Bid

> Update the max CPC bid of Microsoft Ads keywords

Update the max CPC bid of Microsoft Ads keywords.

|                       |                                    |
| --------------------- | ---------------------------------- |
| **App**               | Microsoft Ads                      |
| **Operation ID**      | `microsoft_ads_update_keyword_bid` |
| **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 that owns the keywords to update.                                                          |
| `update_type`     | string or SelectableOption                                                | Yes      | -       | Choose whether to update the bid of a single keyword or multiple keywords at once. Options: 'single' or 'bulk'.             |
| `ad_group_id`     | string or SelectItem                                                      | No       | -       | The ad group ID that contains the keyword. Required for single update (keyword updates are scoped to their ad group).       |
| `keyword_id`      | string or SelectItem                                                      | No       | -       | The keyword ID whose bid to update. Required for single update.                                                             |
| `bid_amount`      | number or string                                                          | No       | -       | New keyword max CPC bid as a plain number in the account currency (e.g. 1.25). Required for single update.                  |
| `structured_data` | array (also accepts a comma-separated string)                             | No       | -       | Structured data for bulk update. Required columns: 'ad\_group\_id', 'keyword\_id', 'bid\_amount'. 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 bid update results.

**Fields**: `message`, `updated_count`, `results`
