How to place Google Adsense ads to blog banner

Source: Internet
Author: User
(Reprinted)
The position of the banner that you want to put on the top. To put it in that position, you can only use CSS. Write a fixed-position layer to estimate that everything can be done. The following describes which Div I want to describe. Code :

# Topgooglead
{} {
Position:Absolute;
Font-size:12px;
Left:350px;
Top:5px;
}

This CSS is used below. In the "top HTML code" box, enter the following content, the advertisement will be displayed in the banner position (note that you should replace it with your own code applied for in Google Adsense ):

< Div ID = "Topgooglead" >
< Script Type = "Text/JavaScript" > <! --
Google_ad_client =   " Pub-1, 8327973135959484 " ;
Google_ad_width =   468 ;
Google_ad_height =   60 ;
Google_ad_format =   " 468x60_as " ;
Google_ad_type =   " Text_image " ;
Google_ad_channel =   "" ;
// --> </SCRIPT>
< Script Type = " Text/JavaScript "
SRC = " Http://pagead2.googlesyndication.com/pagead/show_ads.js " >
</ Script >
</ Div >

Based on different themes, adjust the Left top and font-size values of the CSS # topgooglead to achieve the best visual effect.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.