Today, I added Google ads to my blog.

Source: Internet
Author: User

Today, I finally added Google ads to my blog. I have always hated them, but Google ads give me different feelings. It crawls website content through Google's search engine and places relevant advertisements based on the webpage content. If there is no consistent advertisement, it displays Google public welfare advertisement. Google's public interest ads are very interesting. They generally ask a question. After you click it, you can use Google search to find the answer to this question. Google ads on this site use a 160*160 Tower, floating display on the right side of the page, and provide click hiding functions and prompts. The Google advertisement code is as follows:

<Div align = "center" id = "divads" style = "position: absolute; width: 120">
<Div> <span style = "position: absolute; top: 0; left: 0; width: 100%; Height: 24; Background-color: #006699; color: white; font-size: 9pt; Z-index: 2; "onclick =" divads. style. display = 'None; '"> click to hide the advertisement </span>
<SCRIPT type = "text/JavaScript"> <! --
Google_ad_client = "pub-7149664582144625 ";
Google_ad_width = 120;
Google _ad_height = 600;
Google_ad_format = "120x600_as ";
Google_ad_channel = "";
Google_ad_type = "text ";
// --> </SCRIPT>
<SCRIPT type = "text/JavaScript"
Src = "http://pagead2.googlesyndication.com/pagead/show_ads.js">
</SCRIPT>
</Div>
</Div>
<Script language = "JavaScript">
VaR adwidth = 122
Divads. style. pixelleft = Document. Body. clientwidth-adwidth
Divads. style. pixeltop = 10;
Window. onresize = function () {divads. style. pixelleft = Document. Body. clientwidth-adwidth ;}
</SCRIPT>

Appendix: Public Interest advertisement appreciation published by Google

  1. Why is the sky blue?
  2. Inventor of paper
  3. Tarot cards
  4. Dubbing of the bottom story "nimo"
  5. What is the nearest planet?
  6. The invention of dumplings
  7. What is the sun's temperature?
  8. Ripp van venke
  9. The fastest bird in the world
  10. Top singer
  11. Maximum mathematical number
  12. Earliest dinosaur appearance Period
  13. Red Blood Cell Production
  14. 2002 Nobel Peace Prize winner
  15. The death of cleopetra
  16. Greek mythology
  17. Who is the man who pulls the thorn from the lion's paw in the mythical Rome?
  18. The capital of csily
  19. The second person on the moon
  20. Stylendax riddle
  21. The largest building in the world
  22. Lowest point in the world

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.