Link or unlink a Microsoft Advertising campaign and a shared budget
msads_set_campaign_budget_linkMove a campaign onto a shared budget (attach), or give it its own daily budget again (detach). Attaching makes the campaign spend from the shared amount, so if that is more than double its current budget it needs allowLargeChange. Detaching needs the campaign's new own dailyBudget. Returns the previous setup so it can be restored. Use dryRun first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | ||
| 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. | |
| campaignId | Yes | Campaign id, from msads_get_campaigns. | |
| dailyBudget | No | For detach: the campaign's own daily budget from now on. | |
| sharedBudgetId | No | For attach: the shared budget, from msads_get_budgets. | |
| allowLargeChange | No | A change that more than doubles the current value is refused unless this is true. Set it only when the increase is deliberate and the user has confirmed it. |