The following presents a guideline on how AdRevolver standard and rich media tags should be edited to count clicks in Google Ad Manager. In order to track clicks follow the procedure below:
JavaScript & IFRAME Code
Original Code
You should have received some JavaScript code from AdRevolver that looks similar to the following example:
<SCRIPT language="JavaScript" type="text/javascript">
<!--
var rnd = Math.round(Math.random() * 10000000);
document.writeln('<SCR'+'IPT language=JavaScript type=text/javascript src="https://media.adrevolver.com/adrevolver/banner?js&place=7789&cpy='+rnd+'">');
document.writeln('</SC'+'RIPT>');
//-->
</SCRIPT>
<NOSCRIPT>
<IFRAME src="https://media.adrevolver.com/adrevolver/banner?place=7789&cpy=1" width=300 height=250 scrolling=no allowtransparency=true frameborder=0 marginheight=0 marginwidth=0>
<A href="https://media.adrevolver.com/adrevolver/href?place=7789&rnd=1000" target="_blank">
<IMG src="https://media.adrevolver.com/adrevolver/banner?img&place=7789&rnd=1000" width=300 height=250 border=0 alt="AdRevolver" ismap></A>
</IFRAME>
</NOSCRIPT>Modified Code
What you need to do is modify the URL in the <SCRIPT>, <IFRAME>, and <A> tags as shown by the highlighted changes, The resulting tag should look similar to the following example:
<SCRIPT language="JavaScript" type="text/javascript">
<!--
var rnd = Math.round(Math.random() * 10000000);
document.writeln('<SCR'+'IPT language=JavaScript type=text/javascript src="https://media.adrevolver.com/adrevolver/banner?js&place=7789&cpy='+rnd+'&click=%%CLICK_URL_UNESC%%">');
document.writeln('</SC'+'RIPT>');
//-->
</SCRIPT>
<NOSCRIPT>
<IFRAME src="https://media.adrevolver.com/adrevolver/banner?place=7789&cpy=1&click=%%CLICK_URL_UNESC%%" width=300 height=250 scrolling=no allowtransparency=true frameborder=0 marginheight=0 marginwidth=0>
<A href="%%CLICK_URL_UNESC%%https://media.adrevolver.com/adrevolver/href?place=7789&rnd=1000" target="_blank">
<IMG src="https://media.adrevolver.com/adrevolver/banner?img&place=7789&rnd=1000" width=300 height=250 border=0 alt="AdRevolver" ismap></A>
</IFRAME>
</NOSCRIPT>Note
The ad server recognises the [timestamp] placeholder and will automatically replace it with a cache buster. It is not necessary to convert it to the %%CACHEBUSTER%% macro manually.
Use %%CLICK_URL_UNESC%% at the beginning of a link. Use %%CLICK_URL_ESC%% when the click-tracker is the parameter of another URL.
<a href="%%CLICK_URL_UNESC%%https://www.google.com">link</a>
<a href="https://www.google.com?rd_url=%%CLICK_URL_ESC%%">link</a>