Advertisement
AbdulMuttaqin

Admob Tools In PHP

Jan 13th, 2019
889
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.57 KB | None | 0 0
  1. <head>
  2. <style>
  3. input[type=text] {
  4.   box-sizing: border-box;
  5.  border: 1px solid #ccc;
  6.   border-radius: 4px;
  7.   resize: vertical;
  8. }
  9. </style>
  10. </head>
  11.  
  12. <center>
  13. <form method = "POST">
  14.        ID Publisher <input class="form-control" placeholder="Masukan ID Publiser" type= "text" name= "id" />
  15.          ID Banner: <input class="form-control"  placeholder="Masukan ID Banner" type = "text" name = "banner" />
  16.           Ukuran Banner :
  17.  
  18.  
  19.  
  20. <input  type= "text" size="4" value="400" name ="lebar" />
  21. <input  type= "text" size="4" value="300" name = "tinggi"/>
  22.  
  23. </br>
  24.          <input class="btn btn-info" type="submit" value="Mulai"/>
  25. </form>
  26. </br> <font color="red"> Note: KALAU MISALKAN IKLAN GAMUNCUL COBA RELOAD HALAMAN INI DAN ULANGI LAGI SAMPE MUNCUL ATAU AKTIFKAN VPN MU </font>
  27. </center>
  28. <hr>
  29. <?php
  30.    if( $_POST["id"] || $_POST["banner"] ) ;
  31.      
  32.       $id = $_POST['id'];
  33.       $banner = $_POST['banner'];
  34.       $h = $_POST['tinggi'];
  35.       $w = $_POST['lebar'];
  36. ;
  37. ?>
  38. <script>
  39.         function Shuffle(o) {
  40.             for(var j, x, i = o.length; i; j = parseInt(Math.random() * i), x = o[--i], o[i] = o[j], o[j] = x);
  41.             return o;
  42.         }
  43.         var packages = [
  44.             'com.health.insurance',
  45.             'com.trolls.imdb',
  46.         ];
  47.         var admob = [
  48. [
  49. '<?php echo $id; ?>',
  50. '<?php echo $banner; ?>',
  51. ],
  52. ];
  53.         Shuffle(packages);
  54.         var loop = packages.length - admob.length;
  55.         var x = 0;
  56.         while(x < 1 * admob.length){
  57.             for (var i = 0; i < packages.length - loop; i++) {
  58.                 var source_banner = 'https://googleads.g.doubleclick.net/mads/gma?preqs=0&u_sd=1.5&u_w=300&msid='+ packages[i] +'&cap=a&js=afma-sdk-a-v3.3.0&toar=0&isu=W%27+Math.floor%28Math.random%28%29*9%29+%27EEABB8EE%27+Math.floor%28Math.random%28%29*99%29+%27C2BE770B684D%27+Math.floor%28Math.random%28%29*99999%29+%27ECB&cipa=0&format=300x250_mb&net=wi&app_name=1.android.'+ packages[i] +'&hl=en&u_h=%27+Math.floor%28Math.random%28%29*999%29+%27&carrier=%27+Math.floor%28Math.random%28%29*999999%29+%27&ptime=0&u_audio=4&u_so=p&output=html&region=mobile_app&u_tz=480&client_sdk=1&ex=1&client=ca-app-pub-'+ admob[i][0] +'&slotname='+ admob[i][1] +'&caps=inlineVideo_interactiveVideo_mraid1_clickTracking_sdkAdmobApiForAds&jsv=18" target="_blank" height="<?php echo $h;?>" width="<?php echo $w;?>" frameborder="0" scrolling="no" width="0" height="0" marginwidth="0" marginheight="0"';
  59.             }
  60.             document.write('<iframe target="_blank" src="'+ source_banner +'"/></iframe>');
  61.             x++;
  62.         }
  63. "";
  64.  </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement