24/7 RealMedia

The following presents a guideline on how 24/7 RealMedia 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 24/7 RealMedia that looks similar to the following example:

<script language=”JavaScript1.1″ src=”https://adv.247realmedia.com/RealMedia/ads/adstream_jx.ads/247RMtest.RT.test/247RMTest/TEST-html-0105/INSERT_TIMESTAMP_HERE?–AD-SERVER-CLICK-REDIRECT–“>
</script>

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:

<script language=”JavaScript1.1″ src=”https://adv.247realmedia.com/RealMedia/ads/adstream_jx.ads/247RMtest.RT.test/247RMTest/TEST-html-0105/%%CACHEBUSTER%%?%%CLICK_URL_UNESC%%“>
</script>

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>