How to add AdSense to Google Sites

google

You may have seen a notification from Google way back in October 2013 that you are not able to just add the HTML/Javascript code to your Google Sites website any longer. This is very strange….you can have a Google website but cannot put Google AdSense on it with any ease? madness!

Anyway, although you cannot just add the code into your Google Site, you can still add Google AdSense code to your site by using a custom URL gadget.

Guide

To do this, first of all you need to create your advert you want to place on your website and take a copy of the code.

Then go into your Google Site and edit the page where you want to add your advert. You should then click Insert and then click More gadgets:

How to add AdSense to Google Sites 1

Then you should select “Add gadget by URL” and you should see where you can enter a new URL:

How to add AdSense to Google Sites 2

You should then enter download the following file and host the XML and then enter the link address into the URL field:

Download Google Adsense Gadget

Then click on the Add button and you should then see a new gadget with these variables:

How to add AdSense to Google Sites 3
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- Ad1 -->
<ins class="adsbygoogle"
     style="display:inline-block;width:300px;height:250px"
     data-ad-client="ca-pub-00000000000000"
     data-ad-slot="0000000000"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>

Where these are the parameters you should enter into the fields:

  • 300px = inline-block width
  • 250px = inline-block height
  • 00000000000000 = Publisher ID
  • 0000000000 = Ad Slot

Once you have done this, click the OK button and this should then add your Google AdSense advert to your Google Sites website.

Feedback

If you have any questions or comments on this post, then please feel free to leave us a message below using our comments section.

Click to rate this post!
[Total: 1 Average: 5]

Discover more from TechyGeeksHome

Subscribe to get the latest posts sent to your email.

12 Replies to “How to add AdSense to Google Sites”

  1. Avatar for AnonsMouse AnonsMouse says: Reply

    This is a violation of Adsense policies. AdSense may not be used on google sites, as of 2013. The only people who have AdSense on google sites are people that had it on prior to 2013.

    https://support.google.com/sites/answer/97459?hl=en&visit_id=1-636544755341896922-48365051&rd=1

  2. Avatar for Jayaraj JS Jayaraj JS says: Reply

    i am not able to paste adcode to my site http://www.jaibiz2day.com

  3. Avatar for JAYARAJ J S JAYARAJ J S says: Reply

    Why google not allowing to insert adsense on their own google page?

  4. It is a difficult task and why google not allow to paste on its own goolge page?

  5. Why google not allowing to insert adsense on their own google page?

  6. i am not able to paste adcode to my site http://www.jaibiz2day.com

  7. It is a difficult task and why google not allow to paste on its own goolge page?

  8. Avatar for Neeraj Tyagi Neeraj Tyagi says: Reply

    Is not this violation of adsense policies??

  9. Avatar for Neeraj Tyagi Neeraj Tyagi says: Reply

    Is not this violation of adsense policies??

  10. Avatar for AnonsMouse AnonsMouse says: Reply

    This is a violation of Adsense policies. AdSense may not be used on google sites, as of 2013. The only people who have AdSense on google sites are people that had it on prior to 2013.

    https://support.google.com/sites/answer/97459?hl=en&visit_id=1-636544755341896922-48365051&rd=1

  11. What do you do if there are no dimensions on the block? Mine says:
    style=”display:block”

    but no dimensions

  12. What do you do if there are no dimensions on the block? Mine says:
    style=”display:block”

    but no dimensions

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.