Stream Personalization can be connected to multiple ADS servers.

To send the placement request to the right ADS server, Stream Personalization implements routing policies on a variety of parameters, namely:

- URL path
- Query parameter
- HTTP header
- In-manifest splice information

![Stream Personalization sends placement requests to different ad servers according to the placement rules.](/images/prisma-guide/ad-routing.png)

To create a routing policy, follow these steps:

1. You have started configuring the [ad decision server general parameters](/traditional-products-and-appliances/components/stream-personalization/placement/config-ad-server).

2. Go to the **Filter** tab.

3. Select **Add** to add a routing policy for configured ADS server.

4. Configure the following settings.

   <table>
     <thead>
       <tr>
         <th style="text-align: left">Parameter</th>
         <th style="text-align: left">Description</th>
       </tr>
     </thead>
     <tbody>
       <tr>
         <td style="text-align: left">Type</td>
         <td style="text-align: left">Select the type of data on which routing policy is going to apply:<br>- <strong>URL</strong>: leverage URL path to manage ADS routing based on channel name for instance (assuming channel name is part of the URL path).<br>- <strong>Query parameter</strong>: manage request routing based on manifest URL query parameter.<br>- <strong>HTTP header</strong>: leverage HTTP header from the HTTP manifest request.<br>- <strong>Splice info</strong>: leverage in-manifest splice info.</td>
       </tr>
     </tbody>
   </table>

<blockquote data-callout="note"><strong>Note</strong><p>You can add multiple routing policies.</p></blockquote>

## Routing example

Assuming the following player manifest request:

`http://cdn.example/hls-live/myChannel/index.m3u8?uid=1234&did=iOS&stype=live`

Route the placement request to this ad server when both conditions match.

- URL path contains **myChannel**
- Manifest request contains **stype** key with value **live**

Set the URL path filter to match `myChannel` and the query parameter filter to match `stype=live`.
