Wednesday, August 9, 2017

How To Add AdSense Page Level Ads Code To Your Blogspot Template

Page Level Ads as AdSense calls it, is the next generation ads for mobile device. Why? because it is optimize to for mobile internet surfers only. And because ads from the Page Level ads code does not appear always, users tend to interact with it more, for they will feel it is recommendation from the website they are surfing.





The advantage of using Page Level ads on your blog is numerous, but as you may know, if you are a blogger using blogspot blogging platform, implementing this code can cause you head ache, because blogspot template editor will keep giving error when you try to save your template after you have added to code.

Does this mean that there is not you can do about this? Of cause there is. If you are a frequent reader of this blog, you will notice that our Page Level ad is working well, and this blog is created using blogspot.
So how did we go about implementing the Page Level Ad code to our blogspot template?

You will notice that AdSense Page Level ad code looks like this
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<script>
  (adsbygoogle = window.adsbygoogle || []).push({
    google_ad_client: "ca-pub-0771625264589778",
    enable_page_level_ads: true
  });
</script>
and that the problem why you are receiving the error when you are trying to save the template is because of the first script tag.
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
thus to fix the issue blogspot template is having with that script tag, you need to add
='async'
to the a async property in the tag.
It means that, instead of the script tag to be
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>

It will be
<script async='async' src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>

If you still do not understand the explanation on how to successfully add the Page Level Ad code to your blogspot template above, then just copy the code below and paste it your own template, but change the AdSense publisher ID number which is ca-pub-0771625264589778 to yours.
<script async='async' src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<script>
  (adsbygoogle = window.adsbygoogle || []).push({
    google_ad_client: "ca-pub-0771625264589778",
    enable_page_level_ads: true
  });
</script>


Also Read:
Team +Pinfoltd 



SHARE THIS

3 comments:

  1. i am the one that thought you this bro, no backlinks? to uchetechs?

    ReplyDelete
    Replies
    1. As of the time of posting, there was not article on your blog that the credit link will link to.

      Please forgive me.

      When you create a post explaining how to do the page-level ad thing, send me the link so that I can create a credit line that is linking to it...

      #Pinfoltd

      Delete

People Are Reading...