How to Wrap Header Bidding Ad Tags & Exclude them from Ezoic testing


If you have header bidding partners - it's advisable to exclude their tags from testing sessions, just in case they have custom features that conflict with the Ezoic ad testing system.
 
You can do this by simply 'commenting out' those tags one by one.
 
Here's how you do this:
 
Wrap the header bidding tag in the following comments:


<!-- EZOIC_REMOVE_BEGIN -->

**Header Bidding Code Scripts Go Here**

<!-- EZOIC_REMOVE_END -->

 

So for example:

 

<!-- EZOIC_REMOVE_BEGIN -->

<script type='text/javascript'>

googletag.cmd.push(function() {

googletag.defineOutOfPageSlot('/1111111/LB_Interstitial',

 'LB_Interstitial').addService(googletag.pubads());

googletag.defineSlot('/1111111111/LB_1D_728x90', [728, 90], 

'LB_1D_728x90').addService(googletag.pubads());

 

 

googletag.defineSlot('/1222222/LB_2D_728x90', [728, 90],

 'LB_2D_728x90').addService(googletag.pubads());

googletag.defineSlot('/133333/LB_3D_300x250', [300, 250], 

'LB_3D_300x250').addService(googletag.pubads());

googletag.defineSlot('/1444444/LB_4D_728x90', [728, 90],

 'LB_4D_728x90').addService(googletag.pubads());

 

 

pbjs.que.push(function() {

  pbjs.setTargetingForGPTAsync();

});

 

googletag.pubads().setCentering(true);

googletag.pubads().collapseEmptyDivs(true);

googletag.pubads().enableSingleRequest();

googletag.enableServices();

});

</script>

<!-- EZOIC_REMOVE_END -->


 
If you have any further queries, please reach out to support@ezoic.com.