Adremedy

The following presents a guideline on how Adremedy standard and rich media tags should be edited to count clicks in Google Ad Manager. In order to track clicks follow the procedure below:

IFRAME Code

Original Code

You should have received some IFRAME code from Adremedy that looks similar to the following example:

<IFRAME SRC="https://adserver.adremedy.com/?adiframe|2.0|320|177558|1|0|AHTVED" WIDTH="300" HEIGHT="250" NORESIZE SCROLLING="NO" FRAMEBORDER="0" MARGINHEIGHT="0" MARGINWIDTH="0">
<script language="javascript" src="https://adserver.adremedy.com/?addyn|2.0|320|177558|1|0|AHTVED;loc=800">
</script>
<noscript>
<a href="https://adserver.adremedy.com/?adlink|2.0|320|177558|1|0|AHTVED;loc=400" target="_blank">
<img src="https://adserver.adremedy.com /?adserv|2.0|320|177558|1|0|AHTVED;loc=400;" border="0" width="300" height="250">
</a>
</noscript>
</IFRAME>

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:

<IFRAME SRC="https://adserver.adremedy.com/?adiframe|2.0|320|177558|1|0|AHTVED;rdclick=%%CLICK_URL_UNESC%%" WIDTH="300" HEIGHT="250" NORESIZE SCROLLING="NO" FRAMEBORDER="0" MARGINHEIGHT="0" MARGINWIDTH="0">
<script language="javascript" src="https://adserver.adremedy.com/?addyn|2.0|320|177558|1|0|AHTVED;loc=800;rdclick=%%CLICK_URL_UNESC%%">
</script>
<noscript>
<a href="%%CLICK_URL_UNESC%%https://adserver.adremedy.com/?adlink|2.0|320|177558|1|0|AHTVED;loc=400" target="_blank">
<img src="https://adserver.adremedy.com /?adserv|2.0|320|177558|1|0|AHTVED;loc=400;" border="0" width="300" height="250">
</a>
</noscript>
</IFRAME>

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>