0% found this document useful (0 votes)
93 views3 pages

Script Pilot Adsense

This document provides instructions on how to add a popup advertisement to a website using Google AdSense. The steps include: 1. Adding the popup code before the </body> tag 2. Adding a script to the widget to control the popup timing and visibility 3. Adding CSS styles to format the popup dimensions and positioning 4. Checking for and resolving any errors in the AdSense code

Uploaded by

Putra Arowach
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
93 views3 pages

Script Pilot Adsense

This document provides instructions on how to add a popup advertisement to a website using Google AdSense. The steps include: 1. Adding the popup code before the </body> tag 2. Adding a script to the widget to control the popup timing and visibility 3. Adding CSS styles to format the popup dimensions and positioning 4. Checking for and resolving any errors in the AdSense code

Uploaded by

Putra Arowach
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 3

1.

pasang dibawah kode <body> atau diatas kode </body>: Dengan cara Ctrl + F
<!-- KODE IKLAN Black-->
<div class='xDialog' id="xDialog">
<div class='DialogCon'>
<div class='googleads DialogClose' style='z-index: 999; position: absolute; over
flow: hidden; right: 0px; top: -50px; height: 50px; width: 100px; background: ur
l(&quot;data:image/gif;base64,R0lGODlhNAAPAMQAAP/u7v8REdGZmcJ3d/8iIv9VVf+ZmaQzM/
fu7v+qqv8zM5UREf93d9mqqsqIiP+7u/Dd3f+IiP/d3f9mZv/MzP///40AAP8AAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAACH5BAAAAAAALAAAAAA0AA8AAAXnoCWOJHmdaKqubHuW8OjOdBvHdZ6Pi0MOA5luaB
M5KgLRoIJYiFKKRwWQIFwqktREgp2cFFxJ4Vopj18jAXKJOAgvBAAgYpBYsahJhRKhVLwScxQKVxIREV
ZoaWVtJicGFWcBJ3gnFBKTARIUF4EMKJUpJUsVDSUoXCuhoakFAFh3ZVkoP0wNSI4XkGeJoRQAmQCcAQ
ERFQmFEZ+0SkxuaklPJ3FzBgBeWIcFenx+XgkUkMjZEWcXIwcQbiICAk4WUH5Uk2VlERdbXScRXA/09f
cU3XhDpKDAgfAMKkSYSyERhgQd6ggBADs=&quot;) 100% 100% no-repeat;'>
&lt;script async src=&quot;//pagead2.googlesyndication.com/pagead/js/adsbygoogle
.js&quot;&gt;&lt;/script&gt;
<!-- KitaKitaTau -->
<ins class='adsbygoogle' data-ad-client='ca-pub-xxx' data-ad-format='auto' dataad-slot='xxxxxx' style='display: inline-block; width: 300px; height: 250px; opac
ity: 0.01; z-index: 999;'/>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
</div>
<div class='DialogArea' style='line-height: 0; width: auto; height: auto;'><div
style='padding:15px;'><div style='border:4px dashed#000;'>
<h1 style='margin:0;line-height:1.3em;padding:30px;'>Jika Ingin Membaca
artikel ini klik Pada Image Di artikel</h1>
</div>
</div>
</div>
</div>
</div>
Catatan :
A. ca-pub-xxx SILAHKAN DIGANTI DENGAN KODE CA-PUB ANDA.
B. data-ad-slot='xxxxxx' DAN JUGA <!-- KitaKitaTau -->.
C. Jika Ingin Membaca artikel ini klik Pada Image Di artikel << juga diganti pak
e kata2 anda, bebas.
2. pasang script berikut di widget :
<script>
document.addEventListener('DOMContentLoaded', function() {
if(typeof getCookie('popup-schedule-chuan') == 'undefined'){
setCookie('popup-schedule-chuan' , 'true' , 1);
setTimeout(function(){
document.getElementById("xDialog").style.opacity = "1";
} , 5000);
}

});
function setCookie(cname, cvalue, exdays) {
var d = new Date();
d.setTime(d.getTime() + (exdays*24*60*60*1000));
var expires = "expires="+d.toUTCString();
document.cookie = cname + "=" + cvalue + "; " + expires;
}
function getCookie(name) {
var value = "; " + document.cookie;
var parts = value.split("; " + name + "=");
if (parts.length == 2) return parts.pop().split(";").shift();
}
</script>
Catatan :
A. document.getElementById("xDialog").style.opacity = "1";
} , 5000);
Silahkan ganti angka 5000 Default (= 5 detik) dengan angka misal 10000 (=10 deti
k)
berarti dalam 10 detik popup baru muncul
3.pasang di bawah <b:skin> atau diatas </b:skin> [jika wordpress taruh di style.
css dibawah sendiri] :
.DialogCon { text-align: center; color: rgb(102, 102, 102); width: 300px; backgr
ound-color: rgb(255, 255, 255); }
.xDialog { position: fixed; z-index: 1000; left: 262px; top: 56px;opacity:0;}
@media screen and (max-width: 600px) {
.DialogCon { width:300px; height: 120px; }
.xDialog { width:300px; height: 120px; left:0px;}
}

4. Jika menemukan error, Parse Kode ini gan .


<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></s
cript>

Semoga bermanfaat...
https://kitakitatau.blogspot.co.id

You might also like