add_negative_keywords
Block irrelevant searches by adding negative keywords at campaign or ad group level, preventing ads from showing for unwanted queries.
Instructions
Add negative keywords to block irrelevant searches.
Negative keywords prevent your ads from showing for certain searches. Add them at campaign level to affect all ad groups, or at ad group level for more targeted exclusions.
Args: keywords: List of negative keyword texts customer_id: Target customer ID (optional if set in config) campaign_id: Campaign ID for campaign-level negatives ad_group_id: Ad group ID for ad group-level negatives match_type: Match type - BROAD, PHRASE, or EXACT dry_run: If True, validate but don't execute
Note: Provide EITHER campaign_id OR ad_group_id, not both.
Returns: Result with success status and count of negatives added
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| keywords | Yes | ||
| customer_id | No | ||
| campaign_id | No | ||
| ad_group_id | No | ||
| match_type | No | BROAD | |
| dry_run | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||