substitute_all

Replaces multiple values in a string with a single value.

Note: This function is only available in Templates and can’t be used in Reporting.

Syntax

substitute_all(ATTRIBUTE, "to text", "from text", "from text 2", "from text 3")

Parameters

  • Attribute: An feed attribute such as ITEM_TITLE, ITEM_COLOR, or ITEM_BRAND.
  • to text: The value that replaces the items.
  • from text: The values that you want to replace.

Examples

[substitute_all(ITEM_TITLE, "", "®", "Men's ", "Women's ")]

replaces the trademark symbol, Men's and a space, and Women's and a space in the title of an ad with blank.

The substitute_all function replaces the following nested functions:
[substitute(substitute(substitute(ITEM_TITLE, "®", ""), "Men's ", ""), "Women's ", "")]

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
5104713736061945103
true
Search Help Center
true
true
true
true
true
5055977
false
false