Skip to content

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"
}
}

The same list, written compactly:

resource "google_ads_shared_set" "value_seekers" {
name = "Value-seeker negatives"
type = "NEGATIVE_KEYWORDS"
status = "ENABLED"
negative_keywords {
match_type = "BROAD"
texts = ["free", "diy", "used"]
}
}

Schema

Required

  • name ( String )

Optional

  • type ( String ) One of: NEGATIVE_KEYWORDS, ACCOUNT_LEVEL_NEGATIVE_KEYWORDS .
  • status ( String ) One of: ENABLED, REMOVED . Default "ENABLED"; omit to manage at the default.

Nested blocks documented below: negative_keyword, negative_keywords.

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 .

negative_keywords

The compact form: a list of texts fanned out across a single match_type or a list of match_types. One block stands in for many negative_keyword blocks. Set exactly one of match_type or match_types.

Required

  • texts ( List of String )

Optional

  • match_type ( String ) One of: EXACT, PHRASE, BROAD .
  • match_types ( List of String )

See also