1// Toggles .ad-empty on an ad's container based on GPT's slotRenderEnded event 2// (event.isEmpty), the authoritative "did this ad fill?" signal. CSS handles 3// visibility/spacing off that class â see _googleAd.scss. 4window.googletag = window.googletag || { cmd: [] }; 5googletag.cmd.push(function () { 6 googletag.pubads().addEventListener('slotRenderEnded', function (event) { 7 var unit = document.getElementById(event.slot.getSlotElementId()); 8 var container = unit && unit.closest('.column.google-ad.display-label'); 9 if (container) container.classList.toggle('ad-empty', event.isEmpty); 10 }); 11});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.