AdMeta

The following presents a guideline on how AdMeta 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 Code

Original Code

You should have received some JavaScript code from AdMeta that looks similar to the following example:

<div id=”admeta358795”></div>
<script type=”text/javascript”>
<!–
document.write(‘<scri’ + ‘pt defer=”defer”
src=”https://ai.admeta.com/adserve/public/getad/?id=9875463&noifr=true&urlPrefix=&slump=’
+ new Date().getTime() +
‘<https://ai.admeta.com/adserve/public/getad/?id=9875463&noifr=true&urlPrefix=&slump=’%20+%20new%20Date().getTime()%20+%20’>”
type=”text/javascript”><\/scr’ + ‘ipt>’); //–>
</script>
<noscript>
<a href=”https://rms.admeta.com/public/transfer.asp?sitebanner_id=9875463” target=”_blank” />
<img src=”https://qstream-down.qbrick.com/04452/576/bank/15764/backup_uif8ww3h35er71s7e1ge7w5re1g1d4et7.jpg” width=”300” height=”250” border=”0” /></a> <img src=”https://rms.admeta.com/public/vtexpose.asp?slump=[timestamp]&sitebanner_id=9875463” border=”0” height=”1” width=”1” />
</noscript>

Modified Code

What you need to do is modify the URL in the <SCRIPT> tag as shown by the highlighted changes, The resulting tag should look similar to the following example:

<div id=”admeta358795”></div>
<script type=”text/javascript”>
<!–
document.write(‘<scri’ + ‘pt defer=”defer”
src=”https://ai.admeta.com/adserve/public/getad/?id=9875463&noifr=true&urlPrefix=%%CLICK_URL_UNESC%%&slump=’
+ new Date().getTime() +
‘<https://ai.admeta.com/adserve/public/getad/?id=9875463&noifr=true&urlPrefix=%%CLICK_URL_UNESC%%&slump=’%20+%20new%20Date().getTime()%20+%20’>”
type=”text/javascript”><\/scr’ + ‘ipt>’); //–>
</script>
<noscript>
<a href=”%%CLICK_URL_UNESC%%https://rms.admeta.com/public/transfer.asp?sitebanner_id=9875463” target=”_blank” />
<img src=”https://qstream-down.qbrick.com/04452/576/bank/15764/backup_uif8ww3h35er71s7e1ge7w5re1g1d4et7.jpg” width=”300” height=”250” border=”0” /></a> <img src=”https://rms.admeta.com/public/vtexpose.asp?slump=%%CACHEBUSTER%%&sitebanner_id=9875463” border=”0” height=”1” width=”1” />
</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>