A key-value pair consists of related elements: A key, which is a constant that defines the data set (e.g.: gender, color, price) and a value, which is a variable that belongs to the set (e.g., male/female, green, 100). Destination Builder sends data formatted as key-value pairs.
Fully formed, a basic set of key-value pair could look like these:
gender = male
color = green
price > 100
Destinations accept key-value data in standard
or serialized
format.
Both standard and serialized key-values can contain single or multiple values. The following table provides examples of standard and serial key-value formats.
Formatting | Single Key-Value Pairs | Multiple Key-Value Pairs |
---|---|---|
Standard |
|
|
Serialized |
|
|
The characters that separate values within and between keys and values are known as delimiters
and separators
. These become particularly important when you send segments to a destination in a serial format. Serialization lets you pass in multiple values with a single key and combine key-value pairs. Delimiters and separators are defined as follows:
With Destination Builder you can format key-value data in several different ways. Let’s take a look at some examples of each type.
Key-Value Pair Examples | Example | Description |
---|---|---|
Standard single key |
|
A simple set of key-value pairs. The example contains these elements:
|
Multiple key-value pairs (non-serial) |
|
A set of multiple key-value pairs that pass in values with separate key-value sets. The example contains these elements:
|
Serial single key |
|
A key-value set that passes in multiple values with a single key. Because this key has multiple values, it is known as a serialized key-value pair. The example contains these elements:
|
Multiple key-value pairs (serial) |
|
A set of multiple key-value pairs that pass in multiple values on separate keys. The example contains these elements:
|
A serialized destination combines multiple traits into a single string and sends that information to a destination.
Serialized data transmission helps improve efficiency because multiple traits fire sequentially, rather than in parallel. This provides the destination server with enough time to receive, process, and return data before responding to additional requests.
In Audience Manager, you can serialize and send data to just about any destination you want to work with. However, before using this feature, you will need to know the destination URL and where to place some required or optional macros. Obtain the information about macro placement from your destination partner. See Destination Macros Defined for more information.