Skip to content

google_ads_ad_group_criterion

An ad-group criterion is a keyword (positive or negative) scoped to one ad group. Positive keywords trigger your ads; negative keywords prevent them from showing on irrelevant searches.

Example

A positive phrase-match keyword:

resource "google_ads_ad_group_criterion" "kw_summer_deals" {
ad_group = google_ads_ad_group.summer_default.id
status = "ENABLED"
keyword {
text = "summer deals"
match_type = "PHRASE"
}
}

A positive exact-match keyword with a custom bid:

resource "google_ads_ad_group_criterion" "kw_summer_sale" {
ad_group = google_ads_ad_group.summer_default.id
status = "ENABLED"
cpc_bid_micros = 3500000
keyword {
text = "summer sale"
match_type = "EXACT"
}
}

A bulk list of negative keywords:

resource "google_ads_ad_group_criterion" "summer_negatives" {
ad_group = google_ads_ad_group.summer_default.id
status = "ENABLED"
negative_keyword {
text = "free"
match_type = "BROAD"
}
negative_keyword {
text = "diy"
match_type = "BROAD"
}
}

Schema

Required

  • ad_group ( Reference to google_ads_ad_group )

Optional

  • status ( String ) One of: ENABLED, PAUSED, REMOVED .
  • negative ( Boolean )
  • cpc_bid_micros ( Integer )

Nested blocks documented below: keyword, negative_keyword.

Nested blocks

keyword

A positive keyword. Repeat the block to add several keywords to one resource.

Required

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

negative_keyword

A negative keyword for this ad group. Same shape as keyword. Using this block implicitly marks the criterion as negative.

Required

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

See also