## Summary

You can use [negative keywords](https://support.google.com/google-ads/answer/2453972) to prevent a campaign from serving ads for
specific keywords.

Negative keywords can be broad, exact, or phrase match. You can create a
negative keyword by following the steps for the [Google Ads UI](https://developers.google.com/google-ads/shopping/full-automation/articles/t23.md.txt#manual_steps)
or the [Google Ads API](https://developers.google.com/google-ads/shopping/full-automation/articles/t23.md.txt#automatic_steps).

In addition to creating individual keywords for a campaign, you can create a
[negative keyword list](https://support.google.com/google-ads/answer/2453983) to apply to multiple campaigns at once.

## Manual steps

1. [Create a Shopping campaign](https://developers.google.com/google-ads/shopping/campaign-management/articles/t18.md.txt).
2. Sign in to the [Google Ads account](https://ads.google.com/).
3. Click the **Keywords** tab.
4. Click the **Negative keywords** tab.
5. Click the **+ Keywords** button, then choose ad group or campaign.
6. Select the ad group or campaign to apply the negative keywords to.
7. Enter your keywords, then click **Save**.
8. To change the match type, click on the keyword and select the desired match type, then click **Save** . Here are the supported match types:
   - Broad match (default)
   - Exact match
   - Phrase match

## Automatic steps

1. Make sure you've successfully created a campaign and have a campaign ID.
2. Create a [`MutateCampaignsRequest`](https://developers.google.com/google-ads/api/reference/rpc/latest/MutateCampaignsRequest) as follows:
   1. Set the operation to `update`.
   2. Set the operand to a [`Campaign`](https://developers.google.com/google-ads/api/reference/rpc/latest/Campaign) as follows:
      - Set the `CriterionType` to [`KEYWORD`](https://developers.google.com/google-ads/api/reference/rpc/latest/CriterionTypeEnum.CriterionType#keyword).
      - Set the `negative` field to `true`.
      - Set the `criterion` to `keyword` by providing [`KeywordInfo`](https://developers.google.com/google-ads/api/reference/rpc/latest/KeywordInfo).

You can also add negative keywords at the ad group level.