Skip to content

Instantly share code, notes, and snippets.

@ICBA03
Last active May 12, 2017 17:28
Show Gist options
  • Save ICBA03/ed10ce3ea7e1bb8e45c01be182f40307 to your computer and use it in GitHub Desktop.
Save ICBA03/ed10ce3ea7e1bb8e45c01be182f40307 to your computer and use it in GitHub Desktop.
javascript-jquery
var kadar_adSenseCotnainer = document.getElementById("googlesyndication");
if ( kadar_adSenseCotnainer ) {
var kadar_script = document.createElement('script');
var kadar_script2 = document.createElement('script');
kadar_script.src = "//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js";
kadar_script2.setAttribute('type', 'text/javascript');
kadar_script2.innerText = '(adsbygoogle = window.adsbygoogle || []).push({})';
kadar_adSenseCotnainer.innerHTML = "<ins class='adsbygoogle' style='display:block' data-ad-client='ca-pub-6528726188076812' data-ad-slot='7937423337' data-ad-format='auto'></ins>";
kadar_adSenseCotnainer.prepend(kadar_script);
kadar_adSenseCotnainer.appendChild(kadar_script2);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment