google_ads_shared_set
A shared set is a reusable list of negative keywords. Define it
once, link it to multiple campaigns via
google_ads_campaign_shared_set,
and edit it in one place when something changes.
Example
A shared negative list of “free / DIY / used” terms:
resource "google_ads_shared_set" "value_seekers" { name = "Value-seeker negatives" type = "NEGATIVE_KEYWORDS" status = "ENABLED"
negative_keyword { text = "free" match_type = "BROAD" }
negative_keyword { text = "diy" match_type = "BROAD" }
negative_keyword { text = "used" match_type = "BROAD" }}Schema
Required
-
name( String )
Optional
-
type( String ) One of:NEGATIVE_KEYWORDS,ACCOUNT_LEVEL_NEGATIVE_KEYWORDS. -
status( String ) One of:ENABLED,REMOVED.
Nested blocks documented below: negative_keyword.
Nested blocks
negative_keyword
A negative keyword in the shared set. Repeat the block to list many.
Required
-
text( String ) -
match_type( String ) One of:EXACT,PHRASE,BROAD.
See also
google_ads_campaign_shared_set— link this set to a campaign.google_ads_campaign_criterion— one-off campaign-scoped negatives.