Tuesday, March 7, 2017

How To Paste Adsense Code In Blogger

Are you getting an error while trying to add an Adsense code in Blogger? Don't worry in this post we will show you how to paste Adsense code in Blogger. There are three ways to paste Adsense code in Blogger and in this post I will teach you all. And you will be able to add Adsense code in blogger without facing any issues.
How To Paste Adsense Code In Blogger




Add Adsense Code In Blogger.

In the first method, we will convert our AdSense code. Then we can paste Adsense code in blogger. And it will not lead us to face any issue. To generate error-free Adsense code first of all copy your ad unit code. Then visit our Adsense code converter page. In that page, you will see a text box. paste your code into the box and click on the Conver button. Copy the converted code and paste In blogger Template.

Paste Adsense Code In Blogger By just little bit editing.

In this method, we will edit our code and make it work in blogger without any issues. The AdSense code looks like the following code.
<script async src='//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js'></script>
<ins class='adsbygoogle' data-ad-client='ca-pub-xxxxxxxxxxx' data-ad-slot='xxxxxxxx' style='display:inline-block;width:728px;height:90px'></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
To make it error free add async='asynce' just before async. After editing the code your code will looks like the following code.
<script async='async' src='//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js'></script>
<ins class='adsbygoogle' data-ad-client='ca-pub-xxxxxxxxxxxx' data-ad-slot='xxxxxxxxx' style='display:inline-block;width:728px;height:90px'></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
Now paste Adsense code in Blogger. This time You will not get any error.

Paste Adsense Code In Blogger method three.

In this method, you don't need to convert your code. For adding Adsense code in blogger follow the below steps.

  1. Copy your Adsense code.
  2. Go to the Blogger.com and log in your account.
  3. Select your blog where you wanna Paste Adsense code.
  4. From your blog dashboard click on the layout tab.
  5. From the next page click on the Add Gadget link From the sidebar or header.
  6. A new window will appear. In this window, you have to select javascript/HTMLwidget.
  7. After selecting it will load a new page. In this page, you will see a text box and an input.
  8. Paste Adsense code into the text box and click on the save button.


The Adsense code is successfully added to Blogger blog. Thanks for reading my this post. And Keep visiting for more useful posts. If you have any question about this post feel free to ask me by dropping your comment below.




2 comments:

  1. This comment has been removed by the author.

    ReplyDelete
  2. Thank you! It helped me out on my art supporting/promoting blog ftrabbitstudios.blogspot.com !
    The error just disappeared as I fixed the code! :)

    ReplyDelete

Template Designed By 92TRICKS © Copy Rights All Right Receved
Scroll to Top