Tweaking the Code
After the break, I took control of the computer. "As you just saw, publishing ads on your site is actually very simple," I began. "And the basics never change: Set the options you want, copy the generated code to the clipboard, paste the code into your Web pages. All we're going to do now is tweak the code.""What do you mean?" Claude asked."I mean, I'm going to change some of the options on the Ad layout code page," I said, "and see how it affects the code and the ads that are displayed.""So every time you want to make a change," Anita asked, "you have to go and repaste the code into all your pages?""Yes," I admitted, "unless your Web server supports some kind of template feature the way blogs do. This is usually called server-side includes, and it lets you place the AdSense code in a separate file and have it included automatically in all your Web pages.""Like the style sheet," Stef said."Yes, the same idea," I agreed. "But how it's done really depends on what Web server you're using-you need to talk to your hosting service provider to get the details. The end result is the same, but whenever you want to update the AdSense code, you just change one file on your site instead of changing each Web page.""So let's see you do some tweaking," Claude said."OK, we'll go through each section of the Ad layout code page, starting at the top."
Ad Type
You specify what kind of ad you want to use with the Ad type section (Figure 8.12). There are two basic types of ads to choose: Ad units, for conventional text or image ads Ad links units, for links to a page of text ads
Figure 8.12. Selecting the ad type.
[View full size image]

Ad Layout
The Ad layout section selects the ad format (Figure 8.13). The available formats vary depending on the ad type. Standard ad units support the formats pictured in Figures 8.14 to 8.24.
Figure 8.13. Selecting the ad format.
[View full size image]

Figure 8.14. The leaderboard (728 x 90) format.
[View full size image]

Figure 8.24. The large rectangle (336 x 280) format.

Figure 8.15. The banner (468 x 60) format.

Figure 8.16. The half banner (234 x 60) format.

Figure 8.17. The button (125 x 125) format.

Figure 8.18. The skyscraper (120 x 600) format.

Figure 8.19. The wide skyscraper (160 x 600) format.

Figure 8.20. The vertical banner (120 x 240) format.

Figure 8.21. The small rectangle (180 x 150) format.

Figure 8.22. The square (250 x 250) format.

Figure 8.23. The medium rectangle (300 x 250) format.

Figure 8.25. A four-line ad links unit.

Figure 8.26. A five-line ad links unit.

Color Palette
The Color palettes section selects the colors used by the text ads from a set of predefined and custom color schemes (Figure 8.27). All palette management (creating, editing, or deleting custom palettes) is done from the Ad colors page.
Figure 8.27. Selecting the color palette.
[View full size image]

Alternate Ad
If you want to avoid displaying PSAs (public service ads), you can use the Alternate ad URL or color section to specify an alternate ad, image, or color (Figure 8.28) which will take their place on the page. For ads or images, enter the Web address and click the Update code button. For example, if Claude were using a banner (468 x 60) format he could avoid PSAs by creating an identically sized image for his Web site and setting the alternate ad URL as follows: [http://www.voip-at-home.com/images/alternate_ad_468_60.gif]
Figure 8.28. Specifying an alternate ad.
[View full size image]

Figure 8.29. Choosing an alternate color.
[View full size image]

Channel
More on Frames Frames aren't used much these days, having been largely replaced by CSS and SSI, so for more information see [www.memwg.com/frames].The Channel section assigns a custom channel to the AdSense code (Figure 8.30). All pages that include the code will have their impressions and clicks recorded under the selected channel.
Figure 8.30. Selecting a custom channel.
[View full size image]

Framing
Finally, the Framed pages section (Figure 8.31) tells AdSense that you're using frames. This is an advanced way to split a Web page into multiple parts (the frames), each of which displays another Web page. If frames are used, the AdSense code needs to change slightly to find the correct content; hence the need for this section.
Figure 8.31. Specifying that frames are used.
[View full size image]

The Code
The
