From:
Head:
<script async src="https://securepubads.g.doubleclick.net/tag/js/gpt.js"></script>
<script>
var googletag = googletag || {};
googletag.cmd = googletag.cmd || [];
googletag.cmd.push(function() {
googletag.defineSlot('/55555/sample1', [[728, 90], [300, 250]], 'div-gpt-ad-22222-0').addService(googletag.pubads());
googletag.defineSlot('/55555/sample2', [[300, 250], [728, 90]], 'div-gpt-ad-33333-0').addService(googletag.pubads()); googletag.pubads().enableSingleRequest();
googletag.enableServices();
});
</script>
Body:
<div id='div-gpt-ad-22222-0'>
<script>
googletag.cmd.push(function() { googletag.display('div-gpt-ad-22222-0'); });
</script>
</div>
<div id='div-gpt-ad-33333-0'>
<script>
googletag.cmd.push(function() { googletag.display('div-gpt-ad-33333-0'); });
</script>
</div>
To:
Head: <script> var googletag = googletag || {}; googletag.cmd = googletag.cmd || []; window.pg=window.pg||{};pg.atq=pg.atq||[]; // build consent queue pg.atq.push(function() { //GAM Tag googletag.cmd.push(function () { googletag.defineSlot('/55555/sample1', [[728, 90], [300, 250]], 'div-gpt-ad-22222-0').addService(googletag.pubads()); googletag.defineSlot('/55555/sample2', [[300, 250], [728, 90]], 'div-gpt-ad-33333-0').addService(googletag.pubads()); googletag.pubads().enableSingleRequest(); googletag.enableServices(); }); }); </script> <<script type="text/javascript" async src="//c.pubguru.net/pubdomain.js"></script> Body: <div id='div-gpt-ad-22222-0'> <script> pg.atq.push(function() {window.googletag.cmd.push(function() {googletag.display('div-gpt-ad-22222-0');})}); </script> </div> <div id='div-gpt-ad-33333-0'> <script> pg.atq.push(function() {window.googletag.cmd.push(function() {googletag.display('div-gpt-ad-33333-0');})}); </script> </div>
Your Traffic Cop experts at MonetizeMore can help with these tag conversions and the converted tag sample above can be used as a template of how the tags should be configured. Just make sure to update the details in the tag to match your own raw tags. For example, the network IDs and each individual ad IDs must be customized to match your own.
Once the tags are correctly wrapped in the atq function, ad requests will be delayed from getting sent out until any suspect user is able to solve the captcha that appears on the page whenever suspicious or invalid traffic is detected.