> ## 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 Account Settings

> Update Microsoft Ads account properties and automated-extension annotation opt-outs, including dynamic sitelinks

Update Microsoft Ads account properties and automated-extension annotation opt-outs, including dynamic sitelinks. Account-wide controls; campaign overrides remain. Supports dry-run and read-back verification. Property and annotation updates are separate, non-atomic calls.

| | |
| - | - |
| **App** | Microsoft Ads |
| **Operation ID** | `microsoft_ads_update_account_settings` |
| **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 whose account-level defaults will be updated. |
| `account_properties` | array of MicrosoftAdsAccountProperty | No | - | Native AccountProperty array, or JSON text. Optional when annotation\_opt\_outs is supplied. Only supplied properties are updated; campaign/ad-group/ad overrides are not changed. Example: \[\{"Name":"TrackingUrlTemplate","Value":"\{lpurl}?utm\_source=bing\&utm\_medium=cpc"},\{"Name":"FinalUrlSuffix","Value":"utm\_campaign=\{CampaignId}"},\{"Name":"MSCLKIDAutoTaggingEnabled","Value":"true"}]. Use Value="" to clear a tracking template or suffix. BusinessAttributes uses semicolon-separated names, e.g. "FamilyOwned;Vegan". Microsoft rejects the entire request if any property cannot be set. Read-back values and verification are returned. |
| `annotation_opt_outs` | array of MicrosoftAdsAnnotationOptOut | No | - | Automated-extension annotation opt-outs, as an array or JSON text. Example: \[\{"AnnotationGroupId":17005,"IsOptOut":true}] disables dynamic sitelinks. AccountId and CustomerId are derived from the selected account; these are account-wide settings, not per-ad controls. Omitted/null leaves them unchanged. Requires annotation\_justification. Property and annotation updates are separate API calls and are not atomic; inspect both results before retrying. |
| `annotation_justification` | string | No | - | Reason sent as Microsoft's Justification when updating annotation opt-outs. Required with annotation\_opt\_outs. |
| `dry_run` | boolean | No | `False` | Return the resolved request payload without submitting an update or performing read-back verification. |

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

### MicrosoftAdsAccountProperty

| Field | Type | Required | Default | Description |
| - | - | - | - | - |
| `Name` | enum (`TrackingUrlTemplate`, `FinalUrlSuffix`, `MSCLKIDAutoTaggingEnabled`, `AdClickParallelTracking`, `IncludeViewThroughConversions`, `ProfileExpansionEnabled`, `AllowImageAutoRetrieve`, `IncludeAutoBiddingViewThroughConversions`, ...) | Yes | - | Native Microsoft account property name. |
| `Value` | string or boolean or integer or number | Yes | - | Native string value (boolean/number inputs are converted to strings), e.g. "true" or "false" for switches. Empty string clears TrackingUrlTemplate, FinalUrlSuffix or BusinessAttributes. Null is forwarded unchanged; it is not a universal clear instruction. Microsoft validates values and feature availability. |

### MicrosoftAdsAnnotationOptOut

| Field | Type | Required | Default | Description |
| - | - | - | - | - |
| `AnnotationGroupId` | string or integer | Yes | - | Native annotation group ID. 17000 Dynamic Locations; 17001 Consumer Ratings; 17002 Dynamic Ad Enhancements; 17003 Dynamic Callouts; 17004 Dynamic Partner Data enhancements; 17005 Dynamic Sitelink; 17006 Dynamic Structured Snippets; 17007 Longer Ad Headlines; 17008 Previous Visit; 17009 Seller Ratings; 17011 Dynamic Multimedia Extensions; 17013 Syndication Only Decorations; 17014 Business Logo. Microsoft validates availability. |
| `IsOptOut` | boolean | Yes | - | True opts out of this automated extension; false opts back in. Applies account-wide. |

## Output

**Type**: `Dict`

Returns account\_id, dry\_run, requested\_properties, update\_accepted and verified. Actual updates include native AccountProperties when read-back succeeds, and a warning if verification fails or values differ. Dry runs include request\_payload for properties and annotation\_request\_payload for opt-outs. Annotation changes add annotation\_update with native AnnotationSettings, acceptance and verification; combined updates also include property\_update. Top-level flags require all requested updates to succeed. After a property update, an interrupted annotation write is retained as annotation\_update.update\_accepted=null; an annotation-only interruption raises an unknown-outcome error. Inspect partial outcomes before retrying; no automatic retry is performed. Verified means saved values match, not that extensions will serve.

**Fields**: `account_id`, `dry_run`, `requested_properties`, `update_accepted`, `verified`, `AccountProperties`, `warning`, `request_payload`, `annotation_request_payload`, `annotation_update`, `property_update`


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