Notification

Got 5 minutes? Help us with a quick study about the Search Ads 360 Help Center.

substitute

Substitutes all instances of needle in haystack with replacement.

Syntax

substitute(haystack, needle, replacement)

Parameters

haystack, needle, and replacement can be any of the following:

  • Static text, such as "GDN".
  • A Search Ads 360 variable that is a String, such as Keyword, Campaign, and so on.
  • An expression or formula column that returns a String.

Examples

  • If keyword contains “summer shoes”, substitute “sandals” for “shoes”:
    substitute(“summer shoes”, "shoes", "sandals") = “summer sandals”

Related links

Was this helpful?

How can we improve it?

Need more help?

Try these next steps:

true
Search
Clear search
Close search
Google apps
Main menu
10366899457250890046
true
Search Help Center
false
true
true
true
true
true
5055977
true
false
false
false