How to insert macro for Adsafeprotected or IAS wrapped DCM Tags?

Most of the Ad server has an auto detect option for inserting click macro and cache buster macro. But, those ad servers cannot be detect the respective vendor if the tags are wrapped with IAS or Ad Safe Protected Pixels.

How to insert the MACRO manually?

It’s very simple to replace the macro manually for the DCM tags if the tag is wrapped with IAS or Ad safe pixel.

Just search “ord=[timestamp]” in your creative code and add “click=[ClicMacro]” before the “ord=[timestamp]” with semicolon(;)

tag should be like this ” click=[ClicMacro];ord=[timestamp]”.

Make sure to replace the respective ad server Macro for Click and Cachebuster accordingly.

Sample code Before inserting the Macro

<IFRAME
SRC="https://ad.doubleclick.net/ddm/adi/1234566.xxxxxxxxx/A1236598.12345698;sz=300x250;ord=[timestamp];dclat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=?" WIDTH=300 HEIGHT=250 MARGINWIDTH=0 MARGINHEIGHT=0 HSPACE=0 VSPACE=0 FRAMEBORDER=0 SCROLLING=no
BORDERCOLOR='#000000'>
<SCRIPT language='JavaScript1.1'
SRC="https://ad.doubleclick.net/ddm/adj/1234566.xxxxxxxxx/A1236598.12345698;abr=lie;sz=300x250;ord=[timestamp];dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=?">
</SCRIPT>
</IFRAME>

<SCRIPT TYPE="application/javascript"SRC="https://pixel.adsafeprotected.com/rjss/st/123/12364/skeleton.js"></SCRIPT> 
<NOSCRIPT>
<IMG SRC="https://pixeladsafeprotected.com/rfw/st/123/45697/skeleton.gif" BORDER=0 WIDTH=1 HEIGHT=1 ALT=""></NOSCRIPT>


Sample code After inserting the Macro

<IFRAME
SRC="https://ad.doubleclick.net/ddm/adi/1234566.xxxxxxxxx/A1236598.12345698;sz=300x250;click=%%CLICK_URL_UNESC%%;ord=%%CACHEBUSTER%%;dclat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=?" WIDTH=300 HEIGHT=250 MARGINWIDTH=0 MARGINHEIGHT=0 HSPACE=0 VSPACE=0 FRAMEBORDER=0 SCROLLING=no
BORDERCOLOR='#000000'>
<SCRIPT language='JavaScript1.1'
SRC="https://ad.doubleclick.net/ddm/adj/1234566.xxxxxxxxx/A1236598.12345698;abr=lie;sz=300x250;click=%%CLICK_URL_UNESC%%;ord=%%CACHEBUSTER%%;dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=?">
</SCRIPT>
</IFRAME>

<SCRIPT TYPE="application/javascript"SRC="https://pixel.adsafeprotected.com/rjss/st/123/12364/skeleton.js"></SCRIPT> 
<NOSCRIPT>
<IMG SRC="https://pixeladsafeprotected.com/rfw/st/123/45697/skeleton.gif" BORDER=0 WIDTH=1 HEIGHT=1 ALT=""></NOSCRIPT>

Hope this helps!!!!!