I tried to collapse a slot and its not working .. apparently dfp mark it as not empty .
googletag.cmd.push(function() {
googletag.defineSlot('/21323213123/slot', [[1, 1]], 'div-gpt-ad-31331133133-0').setTargeting('site', [ 'foot' ]).setTargeting('category', [ 'home' ]).setTargeting('page', [ '' ]).setTargeting('tag_championnat', [ '' ]).setTargeting('tag_equipe', [ '' ]).setTargeting('page_type', [ 'wp' ]).addService(googletag.pubads());
googletag.pubads().enableSingleRequest();
googletag.pubads().collapseEmptyDivs();
googletag.enableServices();
});
The iframe generated has some tag with javascript in it