title: Cordova Admob free plugin in javascript - Plugin not working
body: <p>I have a problem with Cordova project. I want to use plugin admob cordova free (<a href="https://github.com/ratson/cordova-plugin-admob-free" rel="nofollow noreferrer">https://github.com/ratson/cordova-plugin-admob-free</a>) for show admob advertising in my app, but i can not show the banners and interstitial ad. I tried everything without success, that is the reason I ask to the stack overflow community.</p>
  <p>My code is here:</p>
  <pre><code>&lt;!DOCTYPE html&gt;
  
  &lt;html&gt;
      &lt;head&gt;
          &lt;meta charset=&quot;utf-8&quot;&gt;
      
          &lt;meta http-equiv=&quot;Content-Security-Policy&quot; content=&quot;upgrade-insecure-requests&quot;&gt;
          &lt;meta name=&quot;format-detection&quot; content=&quot;telephone=no&quot;&gt;
          &lt;meta name=&quot;msapplication-tap-highlight&quot; content=&quot;no&quot;&gt;
          &lt;meta name=&quot;viewport&quot; content=&quot;initial-scale=1, width=device-width, viewport-fit=cover&quot;&gt;
          &lt;meta name=&quot;color-scheme&quot; content=&quot;light dark&quot;&gt;
          &lt;link rel=&quot;stylesheet&quot; href=&quot;css/index.css&quot;&gt;
          &lt;title&gt;Cordova Admob Free&lt;/title&gt;
      &lt;/head&gt;
      &lt;body&gt;
          &lt;div&gt;
           &lt;button id=&quot;interstitialad&quot; &gt;insterstitial ad&lt;button&gt;
           
          &lt;/div&gt;
          &lt;script src=&quot;js/cordova.js&quot;&gt;&lt;/script&gt;
          &lt;script src=&quot;text/javascript&quot;&gt;
          document.addEventListener('deviceready', function() {
            admob.banner.prepare();
            admob.banner.show({ 
              id : 'ca-app-pub-3940256099942544/6300978111',
               autoShow:true
            
            })
          
          }, false);
          
          
          document.getElementById('interstitialad').addEventListerner('click', interstitialad);
          
          function interstitialad() {
          
             admob.insterstitial.config({
                id: 'ca-app-pub-3940256099942544/1033173712'
             
             });
              admob.insterstitial.prepare();
          
          }
          &lt;/script&gt; --&gt;
      &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  <p>I follow the tutorial in this youtube video: <a href="https://www.youtube.com/watch?v=10Yww_fq3bw" rel="nofollow noreferrer">https://www.youtube.com/watch?v=10Yww_fq3bw</a>
  but I dont have any success. I run the code in the Android Emulator, without no success. Do you  know how to see logs in the android emulator?</p>
  <p>I try to see the console.logs from browser platform in cordova, running &quot;cordova run browser&quot;. And I get the following errors:</p>
  <p>The resource from “http://localhost:8000/text/javascript” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff).
  index.html
  Loading failed for the  with source “http://localhost:8000/text/javascript”.</p>
  <p>Thank you and Best Regards,</p>
  <p>Paul</p>