Add Microsoft Advertising negative keywords
msads_add_negative_keywordsAdd negative keywords to a campaign or an ad group, so ads stop showing for those searches (the usual fix for wasted spend found with msads_get_search_terms). Exact blocks only that search, Phrase blocks searches containing the words in order, Broad blocks searches containing all the words in any order - Exact is the safe default. Up to 50 per call; ones already present are skipped. Adding negatives can reduce traffic, so check the list with dryRun when unsure. Needs campaignId for an ad group as well as the ad group id.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| level | Yes | Where the negatives apply. | |
| 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. | |
| entityId | Yes | The campaign id (level campaign) or ad group id (level adGroup). | |
| keywords | Yes | The words or phrases to block, one per item. | |
| 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. | |
| matchType | No | Exact (default), Phrase or Broad. | Exact |
| campaignId | No | Required when level is adGroup: the ad group's campaign. |