Inputs
MicrosoftAdsAccountItem
SelectItem
SelectableOption
Output
Type:Dict
Returns how many associations were created and where.
Fields: applied_associations, ad_extension_ids, entity_ids, association_typeDocumentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Attach EXISTING Microsoft Ads ad extensions to campaigns, ad groups or the whole account
| App | Microsoft Ads |
| Operation ID | microsoft_ads_apply_ad_extension_to_entities |
| Type | Action |
| Connection | microsoft_ads (required) |
| Credits per run | 1 |
| Agent / MCP tool | Yes |
| Requires approval | Yes (write operation) |
| 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 ad extension. |
level | string or SelectableOption | Yes | - | Where to attach the extension: ‘ACCOUNT’ applies it to every campaign, ‘CAMPAIGN’ to the campaigns listed below, ‘AD_GROUP’ to the ad groups. |
ad_extension_ids | array of string or SelectItem | Yes | - | Existing ad extension IDs to attach. microsoft_ads_list_ad_extension_associations returns the IDs already in use on the account. Any extension type works: call, sitelink, callout, image, price, promotion and the rest. |
campaign_ids | array of string or SelectItem | No | - | Campaigns to attach the extension to. Required when level is CAMPAIGN. |
ad_group_ids | array of string or SelectItem | No | - | Ad groups to attach the extension to. Required when level is AD_GROUP. |
| 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. |
| 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. |
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
value | string | Yes | - | |
label | string | Yes | - |
Dict
Returns how many associations were created and where.
Fields: applied_associations, ad_extension_ids, entity_ids, association_type