'; $("#" + mydivid).css( "cssText", "height:" + mydivh + "px !important; width:" + mydivww + "px !important" ); $("#" + mydivid).empty(); $("#" + mydivid).prepend(totalprepend); if (shouldFireOnce("MSG:NO:" + rrttkk)) { //logx("MSG->GA:NO:" + rrttkk); gtagSafe("up2noadd", "up2noadds", rrttkk); } } if (typex == 2) { rrttkk = mydivid + "_" + mydivh + "_" + mydivw + "_YES"; if (shouldFireOnce("MSG:YES:" + rrttkk)) { //logx("MSG->GA:YES:" + rrttkk); gtagSafe("up2yesadd", "up2yesadds", rrttkk); } } } } finally { inflight.delete(inflightKey); } } function flushObserverOnly() { for (const [slotId, info] of obsState.entries()) { if (msgReportedSlots.has(slotId)) continue; const status = info.status; const st = info.st || ""; if (status === "YES") { const label = slotId + "_YES-obs"; if (shouldFireOnce("OBS->GA:YES:" + slotId)) { //logx("OBS->GA:YES:" + slotId); gtagSafe("up2yesadd", "up2yesadds", label); } } else if (status === "DISCOVER") { if ( !fallbackDone.has(slotId) && shouldFireOnce("OBS->GA:DISC:" + slotId) ) { //logx("OBS->GA:DISC:" + slotId); fallbackDone.add(slotId); msgReportedSlots.add(slotId); setTimeout(() => { try { waitGad(slotId, 4); } catch (e) {} }, 0); } } else { if (!fallbackDone.has(slotId) && shouldFireOnce("OBS->GA:NO:" + slotId)) { //logx("OBS->GA:NO:" + slotId); fallbackDone.add(slotId); msgReportedSlots.add(slotId); setTimeout(() => { try { waitGad(slotId, 5); } catch (e) {} }, 0); } } } }