> ## 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.

# Manage Campaign Conversion Goals

> Add or remove conversion goal associations on a Microsoft Ads campaign using the dedicated association endpoints

Add or remove conversion goal associations on a Microsoft Ads campaign using the dedicated association endpoints. Preserves other associations and reads back campaign goals to verify. Removing an association does not delete the goal.

| | |
| - | - |
| **App** | Microsoft Ads |
| **Operation ID** | `microsoft_ads_manage_campaign_conversion_goals` |
| **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 | - | Microsoft Ads account containing the campaign and goals. |
| `campaign_id` | string or SelectItem | Yes | - | Campaign ID from microsoft\_ads\_list\_campaigns. |
| `action` | enum (`add`, `remove`) | Yes | - | Add goal associations or remove only the specified associations. Removing an association does not delete the conversion goal. |
| `goal_ids` | array of string | Yes | - | Existing conversion goal IDs from microsoft\_ads\_list\_conversion\_goals, as a list or comma-separated text. Add preserves existing associations; remove affects only these goals. The campaign is read back to verify the result. |

### 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. |

## Output

**Type**: `Dict`

Returns campaign\_id, action, requested\_goal\_ids, verified, and goal\_ids from campaign readback when available. A warning explains an unverified result; inspect it before retrying.

**Fields**: dynamic (depend on the inputs)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.