if(!container){ return; }
function makeAd(slot){
var ins = document.createElement("ins");
ins.className = "adsbygoogle";
ins.setAttribute("data-ad-client", CLIENT);
ins.setAttribute("data-ad-slot", slot);
ins.setAttribute("data-ad-format", "auto");
ins.setAttribute("data-full-width-responsive", "true");
return ins;
}
if(TOP_SLOT){
var topAd = makeAd(TOP_SLOT);
container.insertAdjacentElement("beforebegin", topAd);
(window.adsbygoogle = window.adsbygoogle || []).push({});
}
if(BOTTOM_SLOT){
var bottomAd = makeAd(BOTTOM_SLOT);
container.insertAdjacentElement("afterend", bottomAd);
(window.adsbygoogle = window.adsbygoogle || []).push({});
}
})();