When a placement opportunity is detected, Stream Personalization connects to an Ad decision system and sends the information that qualifies the ad break opportunity. Information types include: ad break duration, the identifier of detected break, the user identifier, device etc.

Stream Personalization automatically retrieves information from two different sources:

- The manifest URL request (query parameter, and request header)
- The manifest content, with splice information embedded (SCTE-35 for instance)

## Tags from user URL request query parameter

A manifest request URL (sent by the viewer) is usually made of the path to the manifest itself, to which query parameters are appended. An example is given below:

`http://my-cdn-domain/some-path/myChannel/index.m3u8?userid=1234&device=iOS`

Stream Personalization automatically detects query parameters (regardless of the quantity) for use when sending an outbound request. For example, an outbound request to a decision server.

_Example:_ The query parameters userid and device values are accessed as follows: **`{query.userid}`** and **`{query.device}`**

## Tags from the manifest splice

Upon SCTE-35 ad break signaling, the information from the SCTE-35 splice is embedded into DASH, HLS or HSS manifest. MFPZ automatically retrieves key information from the splice.

<table>
  <thead>
    <tr>
      <th style="text-align: left">SCTE-35</th>
      <th style="text-align: left">MFPZ mapping</th>
      <th style="text-align: left">Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td style="text-align: left">Splice_event_id</td>
      <td style="text-align: left"><code>{splice.id}</code></td>
      <td style="text-align: left">Unique id of the ad break/splice event.</td>
    </tr>
    <tr>
      <td style="text-align: left">Break_duration()</td>
      <td style="text-align: left"><code>{splice.breakDuration}</code></td>
      <td style="text-align: left">Ad break duration in terms of ticks of the program’s 90 kHZ clock.</td>
    </tr>
    <tr>
      <td style="text-align: left">N/A</td>
      <td style="text-align: left"><code>{splice.breakDurationSeconds}</code></td>
      <td style="text-align: left">Break duration translated in seconds instead of program’s 90kHZ clock.</td>
    </tr>
    <tr>
      <td style="text-align: left">N/A</td>
      <td style="text-align: left"><code>{splice.breakDurationMilliseconds}</code></td>
      <td style="text-align: left">Break duration translated in milliseconds instead of program’s 90kHZ clock.</td>
    </tr>
    <tr>
      <td style="text-align: left">N/A</td>
      <td style="text-align: left"><code>{splice.breakDurationISO}</code></td>
      <td style="text-align: left">Break duration translated in ISO format instead of program’s 90kHZ clock.</td>
    </tr>
    <tr>
      <td style="text-align: left">splice_command_type</td>
      <td style="text-align: left"><code>{splice.type }</code></td>
      <td style="text-align: left">Type of splice command. Depending on the value, this will refer to splice_insert(), time_signal() etc. (see standard for exhaustive list of commands supported).</td>
    </tr>
    <tr>
      <td style="text-align: left">avail_num</td>
      <td style="text-align: left"><code>{splice.availNum}</code></td>
      <td style="text-align: left">Avail number</td>
    </tr>
    <tr>
      <td style="text-align: left">Segmentation_type_id</td>
      <td style="text-align: left"><code>{splice.segmentationTypeId}</code></td>
      <td style="text-align: left">Value used to determine whether the splice indicates a program start/end, placement opportunity start/end etc. (see standard for all possible values).</td>
    </tr>
    <tr>
      <td style="text-align: left">Segmentation_descriptor()</td>
      <td style="text-align: left"><code>{splice.segmentationDescriptor}</code></td>
      <td style="text-align: left">Segmentation descriptor raw data bytes. These raw data can be used by 3rd party component to manage ad-hoc parsing.</td>
    </tr>
  </tbody>
</table>
