Adding the AdSense code to your website is very forward process. You just need to copy the AdSense code from your account (as seen in the AdSense code box) and paste it into your HTML code. However, there are certain principles that you will have to watch for add the AdSense code to your website.
First, you should never tamper with the AdSense code in any case. Should be included as such in its entirety, without any changes or modifications, otherwise your AdSense code will not work. In addition, you may end up violating the AdSense program.
It is also important that the introduction of the AdSense code in the body html tags from your site. This is necessary to code (Java Script) to work properly.
Next, you need to ensure that you will use up to three ad units on a Web page (this is the limit specified in the Google AdSense program), and not more than 1 unit link to a Web page.
Whereas content-based ad targeting is the main idea of the AdSense program, you must ensure that you paste your AdSense code in a place where you have your main content pieces such as if you have your main content in a frame, or ‘DIV’ tag, your AdSense code should be inserted in this particular film or ‘DIV’ tag.
Be careful when using the WYSIWYG editor (What you see is what you get) editors. These editors sometimes add a few marks on their own. So, add the AdSense code only in the source code, and not directly in the preview site, or any other view on your website. Always check that the AdSense code to other irrelevant tags before you actually upload your site to your server.

