title: Display Ads in Android Webview
body: <p>I am trying to display Ads in Android's Webview. The JS snippet that is given below needs to be embedded in the webview:</p>
  
  <pre><code>    &lt;script type="text/javascript" src="Ad URL"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>The URL contains the following code:</p>
  
  <pre><code>    document.write('&lt;a target="_blank" 
       href="valid URL"&gt;
       &lt;img src="valid Image" border=0&gt;&lt;/a&gt;');
  </code></pre>
  
  <p>Here's how am doing it in my activity:</p>
  
  <pre><code>    WebView mWebView = (WebView)findViewById(R.id.adWebView);
      mWebView.getSettings().setJavaScriptEnabled(true);
      mWebView.loadURL("Valid URL");
  </code></pre>
  
  <p>The above code does not display the Ad image but it displays the javascript code in the webview. Please advise me how to display the image in the webview and not the code. </p>
  
  <p>Thanks in advance.</p>