Notification

Please be advised that the Customer Support team does not provide troubleshooting services in your current display language. To contact Support team staff, please first switch to English or other supported languages (Spanish, Portuguese or Japanese). 

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
Main menu
3528997988849565124
true
Search Help Centre
true
true
true
true
true
5055977
false
false