Create a Microsoft Advertising search campaign
msads_create_campaignCreate a search campaign. It is ALWAYS created paused: it cannot spend until someone adds an ad group, keywords and an ad and turns it on with msads_set_status. Give it either its own dailyBudget or a sharedBudgetId (from msads_get_budgets). The time zone defaults to the account's. Bid strategy: EnhancedCpc (default), MaxClicks, or MaxConversions (needs a UET tag and conversion goal, and works best with 30+ conversions a month). Names must be unique in the account. A new budget above 50 per day needs allowLargeChange. Use dryRun to review.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Campaign name, up to 128 characters, unique in the account. | |
| 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. | |
| maxCpc | No | Optional ceiling on a click for MaxClicks. | |
| timeZone | No | Microsoft's time zone name. Default: the account's own. | |
| 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. | |
| languages | No | Languages as Microsoft spells them, e.g. ['English']. Default English. | |
| bidStrategy | No | EnhancedCpc (default), MaxClicks or MaxConversions. | EnhancedCpc |
| dailyBudget | No | The campaign's own daily budget, in the account currency. | |
| sharedBudgetId | No | Use an existing shared budget instead of dailyBudget. | |
| 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. |