Steps 



Place this code in in CMS - Website Management- Ad management - Page - Common ,Elemet name -sync_header_tags


<script>

window.googletag = window.googletag || {cmd: []};

googletag.cmd.push(function() {

        googletag.pubads().enableSingleRequest();

           googletag.pubads().disableInitialLoad();

googletag.pubads().collapseEmptyDivs();


           googletag.enableServices();           

});

</script>



 Inspect your website and find the code -https://securepubads.g.doubleclick.net/tag/js/gpt.js


If this code is not found ask the support team(Hocalwire) to fix this


                                                        Sample Code

<div class="hocal-ad" id="@divid@" ></div>


<script>

    window.insertInfiniteDFPAdd("@divid@","@slot@");

</script>

Rule 


- Replace the id code “@id@” (Use under comma code from original code)

Replace the slot code -- @slot@  (use under the bracket code from the original code )

For new Ads use the same format every time




Sample Original code (which we get from DFP)



For Header

<script async src="https://securepubads.g.doubleclick.net/tag/js/gpt.js"></script>

<script>

  window.googletag = window.googletag || {cmd: []};

  googletag.cmd.push(function() {

    googletag.defineSlot('/22081762831/maxmaharashtra.com-320x50_2', [320, 50], 'div-gpt-ad-1610517499444-0').addService(googletag.pubads());

    googletag.pubads().enableSingleRequest();

    googletag.pubads().collapseEmptyDivs();

    googletag.enableServices();

  });

</script>


Body tag


<!-- /22081762831/maxmaharashtra.com-320x50_2 -->

<div id='div-gpt-ad-1610517499444-0' style='width: 320px; height: 50px;'>

  <script>

    googletag.cmd.push(function() { googletag.display('div-gpt-ad-1610517499444-0'); });

  </script>

</div>






Our Final Code (Which we have to paste in Hocalwire CMS)


<div class="hocal-ad" id="div-gpt-ad-1610517499444-0" ></div>


<script>

    window.insertInfiniteDFPAdd("div-gpt-ad-1610517499444-0","'/22081762831/maxmaharashtra.com-320x50_2', [320, 50]");

</script>