View a markdown version of this page

Function examples - AWS Elemental MediaTailor

Function examples

Before working through these examples, you should be familiar with:

This page provides complete, working function configurations for common use cases. Each example includes the scenario, the full configuration, the function mapping, and an explanation of what happens when the function runs.

Example Scenario description
Example 1: Data enrichment Fetch a LiveRamp identity envelope at session start and store it in player parameters.
Example 2: A/B traffic split Split ad request traffic evenly between two ad decision server URLs for A/B testing.