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


Original Code

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

<iframe id=’bd538533′ name=’bd538533′ src=’×250&cb=INSERT_RANDOM_NUMBER_HERE’ frameborder=’0′ scrolling=’no’ width=’300′ height=’250′>
<a href=’’ target=’_blank’>
<img src=’×250&cb=INSERT_RANDOM_NUMBER_HERE&n=t97d86345’ border=’0′ alt=” /></a>

Modified Code

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

<iframe id=’bd538533′ name=’bd538533′ src=’×250&cb=%%CACHEBUSTER%%’ frameborder=’0′ scrolling=’no’ width=’300′ height=’250′>
<a href=’%%CLICK_URL_UNESC%%’ target=’_blank’>
<img src=’×250&cb=%%CACHEBUSTER%%&n=t97d86345’ border=’0′ alt=” /></a>


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%%">link</a>
<a href="">link</a>