How to Add Google AdSense to All the Pages on Your Website
By Darren Johannsen
Google AdSense is one of the most widely used advertising networks on the Web. With Google AdSense, you can monetize your website by displaying ads targeted to your audience. Google's targeting is quite sophisticated and aims to maximize the number of ad clicks by visitors, which increases your revenue. To display Google AdSense ads on your website, you just need to insert automatically generated code from Google's AdSense website into the HTML code of any Web page.
Navigate to the Google AdSense website and log in to your account. Click the "AdSense Setup" tab and then select "AdSense for Content."
Follow the displayed instructions to customize your ad's format, color and other options.
Select the HTML code displayed in the ad code window. Right-click on the highlighted text and choose "Copy" from the context menu.
Open the source code of any page on your website in a text editor or HTML editing program.
Paste the Google AdSense code into your Web page. The code must be between the page's opening <body> and closing </body> tags. Where you paste the code will determine where the Google ads appear on the page.
Save the Web page and then view it in your browser to make sure the AdSense ads display correctly. If you’d like to move the code elsewhere on the page, simply open the page in your editor and move the code.
Repeat the previous steps for every other Web page on which you would like Google ads to appear.
Darren Johannsen has been writing computer-related articles since 2006. He has contributed to various websites, including the Slashdot blog. He holds a Bachelor of Science in computer science from the University of Idaho.