- 2
Will Google Adsense work if it is placed inside a html widget?
<!-- SAL-e, Bottom Banner -->
<div id="google-ads"></div>
<script>// <![CDATA[
(function() {
var script = document.createElement("script");
script.src = "//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js";
script.async = true;
document.body.appendChild(script);
var ins = document.createElement("ins");
ins.class = "adsbygoogle";
ins.style = "display:inline-block;width:728px;height:90px";
ins.setAttribute("data-ad-client", "ca-pub-8453972048291109");
ins.setAttribute("data-ad-slot", "4726471878");
var googleAds = document.getElementById("google-ads")
googleAds.appendChild(ins);
(adsbygoogle = window.adsbygoogle || []).push({});
})();
// ]]></script>