Skip to end of metadata
Go to start of metadata

SetKeywords

setKeywords (('targetId', {parameters}, {options} ) 

Sets the keywords for the specified targetId.

Parameters

ParameterDescription
targetIdThe unique identifier of a specific ad slot.

keywords

A set of key/value pairs applicable to this ad slot. Querystring segments are defined by key/value pairs in this object. Keywords that contain hyphens must be enclosed in single quote marks. Best practice is to always surround keywords with single quotes.

Users can also create a custom macro. The format must be #{MY_CUSTOM_KEY}.

These key/values/macros are case sensitive (not forced uppercase).

A maximum of 100 macro replacements are allowed on a pixel/creative, etc.

options

An object specifying additional options available when setting keywords. Available options:

OptionTypeDescription
overrideKeyValue
Boolean

true: Existing values for keywords will be overwritten by values specified in this tag.

false: (Default) Values to keywords in the current tag will be added to previously-defined keywords.

Examples
  • No labels