Base solution for your next web application
Open Closed

Using Adsense with AspNetZero #6442


User avatar
0
affern created

Hello.

I wonder if anyone here using Google Adsense together with AspNetZero? I'm trying to use ng2-adsense (https://www.npmjs.com/package/ng2-adsense) since I have an Angular solution, but I'm not able to get it to work.

Is it ok to put this code in the head tags in the index.html file? <div class="highlight"><pre class="editor editor-colors"><div class="line"><span class="text html"><span class="meta tag any html"><span class="punctuation definition tag html"><span><</span></span><span class="entity name tag html"><span>script</span></span><span> </span><span class="entity other attribute-name html"><span>async</span></span><span> </span><span class="entity other attribute-name html"><span>src</span></span><span>=</span><span class="string unquoted html"><span>//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js</span></span><span class="punctuation definition tag html"><span>></span><span class="meta scope html"><span><</span></span><span>/</span></span><span class="entity name tag html"><span>script</span></span><span class="punctuation definition tag html"><span>></span></span></span></span></div></pre></div>


1 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @affern

    We haven't used it but there is no problem on putting this into the index.html if you want it to be able for entire app.