To manage ad substitution, Stream Personalization builds the path to retrieve the ad manifests based on the ADS response (VAST/VMAP or SCTE-130-3).
Like the Ad Decision Server URL, access to ad assets manifest is achieved using URL template pattern. This is usually based on:

- Base location where ads are stored (could be a local origin, a CDN endpoint).
- Information retrieved from the VAST/VMAP or SCTE-130-3 response such as ad name, ad ID etc. available as a variable.

List of variables:

<table>
  <thead>
    <tr>
      <th style="text-align: left">VAST/VMAP</th>
      <th style="text-align: left">Stream Personalization variable</th>
      <th style="text-align: left">Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td style="text-align: left">Ad Title</td>
      <td style="text-align: left"><code>{assetID}</code></td>
      <td style="text-align: left">If <code>&lt;adTitle&gt;</code> not present, <code>{assetID}</code> is mapped to the adID value from <code>&lt;creative&gt;</code> VAST element.</td>
    </tr>
    <tr>
      <td style="text-align: left">MediaFile URL</td>
      <td style="text-align: left"><code>{AssetURL}</code></td>
      <td style="text-align: left">URL for the creative. Regex can be used to extract the relevant portion (like creative name) and build the path towards the creative manifest.</td>
    </tr>
  </tbody>
</table>

<table>
  <thead>
    <tr>
      <th style="text-align: left">SCTE-130-3</th>
      <th style="text-align: left">Stream Personalization variable</th>
      <th style="text-align: left">Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td style="text-align: left"><code>&lt;Core:URI&gt;</code></td>
      <td style="text-align: left"><code>{AssetURL}</code></td>
      <td style="text-align: left">URL of the creative.</td>
    </tr>
    <tr>
      <td style="text-align: left"><code>&lt;Core:@assetID&gt;</code></td>
      <td style="text-align: left"><code>{assetID}</code></td>
      <td style="text-align: left">ID of the creative. Can be used to build the path to the creative manifest.</td>
    </tr>
  </tbody>
</table>

<table>
  <thead>
    <tr>
      <th style="text-align: left">SCTE-224</th>
      <th style="text-align: left">Stream Personalization variable</th>
      <th style="text-align: left">Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td style="text-align: left">Action:content</td>
      <td style="text-align: left"><code>{assetID}</code></td>
      <td style="text-align: left">When the viewing policy and audience match, Stream Personalization uses the value of the policy’s content action to identify the asset.</td>
    </tr>
  </tbody>
</table>

1. You have started configuring the ad decision server general parameters.

2. Go to the **Asset** tab.

3. 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">Source URL pattern</td>
         <td style="text-align: left">URL pattern to build the access to the ad manifest based on VAST/VMAP or SCTE-130 response from the ad server.</td>
       </tr>
       <tr>
         <td style="text-align: left">Secondary source URL pattern</td>
         <td style="text-align: left">Secondary source URL pattern to build the access to the ad manifest based on VAST/VMAP or SCTE-130 response from the ad server.</td>
       </tr>
       <tr>
         <td style="text-align: left">Distribution URL pattern</td>
         <td style="text-align: left">Segments/chunks distribution URL rewriting. When ad assets are fetched the same way a player would do, this setting is usually identical to Source URL pattern. In case ad asset manifests are fetched locally, this setting shall be properly configured.</td>
       </tr>
       <tr>
         <td style="text-align: left">Creative miss notification</td>
         <td style="text-align: left">Allows sending a notification to a Content Management System (CMS) in case of missing asset If you selected <strong>MediaKind</strong>, a new parameter is displayed to configure the asset management URL</td>
       </tr>
     </tbody>
   </table>

4. Go to [Configure break bumpers](/traditional-products-and-appliances/components/stream-personalization/placement/config-ad-server/break-bumpers).
