Original Code

You should have received some HTML code from AdvertPRO that looks like the following (Sometimes the SCRIPT part only):

<!-- BEGIN ADVERTPRO CODE -->
<SCRIPT type="text/javascript">
document.write('<SCR'+'IPT src="http://adserver.example.com/servlet/view/banner/javascript/zone?zid=7&pid=0&random='+Math.floor(89999999*Math.random()+10000000)+'&millis='+new Date().getTime()+'&referrer='+encodeURIComponent(document.location)+'" type="text/javascript"></SCR'+'IPT>');
</SCRIPT>
<NOSCRIPT>
<IFRAME src="http://adserver.example.com/servlet/view/banner/html/zone?zid=7&pid=0" height="600" width="120" hspace="0" vspace="0" frameborder="0" marginwidth="0" marginheight="0" scrolling="no">
<A href="http://adserver.example.com/servlet/click/zone?zid=7&pid=0&lookup=true&position=1" rel="nofollow" target="_blank">
<IMG src="http://adserver.example.com/servlet/view/banner/image/zone?zid=7&pid=0&position=1" height="600" width="120" hspace="0" vspace="0" border="0" alt="Click Here!">
</A>
</IFRAME>
</NOSCRIPT>
<!-- END ADVERTPRO CODE -->

 


Modified Code

(WARNING: The NOSCRIPT part have not been tested.)

What you need to do is modify the URL in the <SCRIPT>, <IFRAME> and <A> tags as shown by the highlighted changes:

<!-- BEGIN ADVERTPRO CODE -->
<SCRIPT type="text/javascript">
document.write('<SCR'+'IPT src="http://adserver.example.com/servlet/view/banner/javascript/zone?zid=7&pid=0&random='+Math.floor(89999999*Math.random()+10000000)+'&millis='+new Date().getTime()+'&encode=1&referrer='+encodeURIComponent(document.location)+'&cturl=%%C%%?" type="text/javascript"></SCR'+'IPT>');
</SCRIPT>
<NOSCRIPT>
<IFRAME src="http://adserver.example.com/servlet/view/banner/html/zone?zid=7&pid=0&encode=1&cturl=%%C%%?" height="600" width="120" hspace="0" vspace="0" frameborder="0" marginwidth="0" marginheight="0" scrolling="no">
<A href="http://adserver.example.com/servlet/click/zone?zid=7&pid=0&lookup=true&position=1&encode=1&cturl=%%C%%?" rel="nofollow" target="_blank">
<IMG src="http://adserver.example.com/servlet/view/banner/image/zone?zid=7&pid=0&position=1" height="600" width="120" hspace="0" vspace="0" border="0" alt="Click Here!">
</A>
</IFRAME>
</NOSCRIPT>
<!-- END ADVERTPRO CODE -->


Note:

For third party ad servers, you will need to replace %%CLICKTAG%% with their click tracking macro. Be aware that some third party ad servers cannot handle redirects being sent back to them in escaped/encoded form. You can deal with this by changing the value of the encode parameter to zero. It may also be changed to a value greater than zero should multiple escaping/encoding passes be required.


Extra Help:

http://www.advertserve.com/docs/3.5/html/manual/thirdparty_advertpro.html