Page tree
Skip to end of metadata
Go to start of metadata

Passing variable values to Invocation tags.

Revive Adserver's Site - Variable delivery rule allows banners to be targeted to named variable values. 

The table below shows the different way to pass in a named variable (userType) and value (premiumUser) by invocation tag type.

Changes from the default tag are highlighted in bold red.

Naturally, more than one variable may be passed into Revive Adserver via the same method - simply add more named variable/value pairs to the invocation tag as required.


Tag TypeVariable in Invocation Tag Example

Asynchronous JS

<ins data-revive-zoneid="1" data-revive-userType="premiumUser" data-revive-id="9689241d68f3bd2ccf2f346d74a3abaa"></ins>
<script async src="//"></script>

(warning) Please see


<script type='text/javascript'><!--//<![CDATA[
var m3_u = (location.protocol=='https:'?'':'');
var m3_r = Math.floor(Math.random()*99999999999);
if (!document.MAX_used) document.MAX_used = ',';
document.write ("<scr"+"ipt type='text/javascript' src='"+m3_u);
document.write ("?zoneid=1");
document.write ('&amp;userType=premiumUser');
document.write ('&amp;cb=' + m3_r);
if (document.MAX_used != ',') document.write ("&amp;exclude=" + document.MAX_used);
document.write (document.charset ? '&amp;charset='+document.charset : (document.characterSet ? '&amp;charset='+document.characterSet : ''));
document.write ("&amp;loc=" + escape(window.location));
if (document.referrer) document.write ("&amp;referer=" + escape(document.referrer));
if (document.context) document.write ("&context=" + escape(document.context));
if (document.mmm_fo) document.write ("&amp;mmm_fo=1");
document.write ("'><\/scr"+"ipt>");
//]]>--></script><noscript><a href=';cb=INSERT_RANDOM_NUMBER_HERE' target='_blank'><img src=';cb=INSERT_RANDOM_NUMBER_HERE&amp;n=acb33d8b' border='0' alt='' /></a></noscript>

Single Page Call

<script type='text/javascript' src=';userType=premiumUser'></script>

(warning) Only the header script part needs to be modified for Single Page Call invocation.


<iframe id='a1432daa' name='a1432daa' src=';userType=premiumUser&amp;cb=INSERT_RANDOM_NUMBER_HERE' frameborder='0' scrolling='no' width='468' height='60'><a href=';cb=INSERT_RANDOM_NUMBER_HERE' target='_blank'><img src=';cb=INSERT_RANDOM_NUMBER_HERE&amp;n=a6964f39' border='0' alt='' /></a></iframe>

Local Mode


  $_REQUEST['userType'] = 'premiumUser';

  define('MAX_PATH', '/path/to/revive-adserver');
  if (@include_once(MAX_PATH . '/www/delivery/alocal.php')) {
    if (!isset($phpAds_context)) {
      $phpAds_context = array();
    $phpAds_raw = view_local('', 1, 0, 0, '', '', '0', $phpAds_context, '');
  echo $phpAds_raw['html'];


(warning) Not supported.


<a href=';cb=INSERT_RANDOM_NUMBER_HERE' target='_blank'><img src=';userType=premiumUser&amp;cb=INSERT_RANDOM_NUMBER_HERE&amp;n=a744f791' border='0' alt='' /></a>

No Cookie Image

<a href='' target='_blank'><img src=';userType=premiumUser&amp;cb=INSERT_RANDOM_NUMBER_HERE' border='0' alt='' /></a>

Interstitial or Floating DHTML

<script type='text/javascript'><!--//<![CDATA[
var ox_u = '';
if (document.context) ox_u += '&context=' + escape(document.context);
document.write("<scr"+"ipt type='text/javascript' src='" + ox_u + "'></scr"+"ipt>");


<script type='text/javascript' src=';userType=premiumUser'></script>

  • No labels