google_ads_negative_placements_add
Prevent ads from showing on unwanted websites, mobile apps, or app categories by batch-excluding them from Google Ads campaigns or ad groups.
Instructions
Excludes websites, mobile apps and/or mobile app categories from delivery, in one batch, at campaign or ad group level. Returns level, the scope id, count, and per entry the created criterion_id, resource_name, type and value. Mutating and delivery-affecting — a large exclusion batch can take a Display campaign to zero impressions. Recorded in STATE.json's action_log with an observation window, and reversible as one unit via rollback_apply, which removes exactly the criteria this call created. Exclude search terms with google_ads_negative_keywords_add instead.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| placements | Yes | Exclusions to add. Types can be mixed in one call; the whole batch becomes a single reversible action_log entry. | |
| ad_group_id | No | Ad group ID for an ad group-level exclusion. Supply exactly one of campaign_id or ad_group_id. Ad group-level exclusions do not cascade to sibling ad groups. | |
| campaign_id | No | Campaign ID for a campaign-level exclusion. Supply exactly one of campaign_id or ad_group_id — the two are separate criteria and campaign-level exclusions apply to every ad group under the campaign. | |
| customer_id | No | Google Ads customer ID as a 10-digit string without dashes (e.g. '1234567890'). Optional — falls back to GOOGLE_ADS_CUSTOMER_ID / GOOGLE_ADS_LOGIN_CUSTOMER_ID from the configured credentials when omitted. |