Login  Register

Re: app_body_header

Posted by Harvey on Nov 08, 2013; 2:32pm
URL: https://support.nabble.com/app-body-header-tp7584955p7587771.html

Pedro there are currently two types of adsense code:

New (asynchronous) code. It is faster loading and more accurate.  I am getting a parse error when I add it:


<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- Rectangle 234 (Off Topic) -->
<ins class="adsbygoogle"
     style="display:inline-block;width:234px;height:60px"
     data-ad-client="ca-pub-0156740191883467"
     data-ad-slot="2606354545"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>

Old code, which still works for now. I get no error but the ad doesn't display:

<script type="text/javascript"><!--
google_ad_client = "ca-pub-0156740191883467";
/* Rectangle 234 (Off Topic) */
google_ad_slot = "2606354545";
google_ad_width = 234;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="//pagead2.googlesyndication.com/pagead/show_ads.js">
</script>

In each case I set the site of the container to  234 x 60 in this sub app to test it:

http://forum.nyskiblog.com/The-Off-Topic-f1389381.html

Thx.

HTTPS Please!