Attach or detach Microsoft Advertising extensions
msads_set_ad_extension_attachmentAttach library extensions to a campaign or an ad group (they start serving there), or detach them (they stop serving there and stay in the library). Use ids from msads_get_ad_extensions. Attaching to an ad group overrides what the campaign has. Use dryRun first when unsure.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | attach = start serving, detach = stop serving. | |
| dryRun | No | Preview only. Microsoft has no validate-only mode, so Caybl reads the current value and shows exactly what would change (before and after) without sending anything. Free, and cannot affect spend. | |
| accountId | No | Microsoft Advertising account id or account number (e.g. 'F123ABCD'), as listed by msads_list_accounts. Only needed when the sign-in can reach more than one account. | |
| adGroupId | No | The ad group to attach to or detach from (wins over campaignId). | |
| campaignId | No | The campaign to attach to or detach from. | |
| extensionIds | Yes | Extension ids, from msads_get_ad_extensions. |