How to embed Adsense ads inside a Blogger.com post




  • Now you have to find the DIV tag that contains the id to the 'sidebar'. Normally it's after all the comments stuff. Insert BEFORE this DIV tag the following javascript code:





And that's all folks. Test it before publishing. I have tested it in FireFox and Internet Explorer in Windows. If you can test it in Safari or Opera, please send me some feedback.

Comments, improvements and problems will be welcomed!

Update 1: A colleague sent me a CSS hack. You can find it here.
Update 2: To restrict the effect of the script to the posts avoiding the sidebars and other effects, this version modified of the script only affects the post bodies.

-->

Tweet One of the most annoying things of a Blogger.com blog was how difficult was to add AdSense ads in your blog. Currently this is not an issue anymore because you can add automatically AdSense ads in your page thanks to the Blogger dashboard. But if you read blogs you will realize that some blogs [...]

Birthmarking: How to detect and prove GPL violations in Java propietary code

Tweet I have just read the news in Slashdot (Yes, I still read Slashdot) and I found this very interesting article about a new technique to detect GPL violations in proprietary obfuscated code. The technique is called Birthmarking and basically it ‘observes short sequences of method calls received by individual objects from the Java Platform [...]

Skype outage has cost more than $11000 per second to eBay

Tweet I have not been able to use Skype for more than 24 hours, just like the rest of the world. It seems that the problem is serious. It has been reported that it’s an issue with a new version of the application. But it’s not so clear. Such a long outage must come from [...]

The difference between an Excellent Programmer and a Natural Born Programmer

Tweet Reading this blog about what he thinks a Natural Born Programmer is came to my mind a discussion about what is an excellent programmer and a natural born programmer.The example given (detect if a number is odd or even) should be enough to differentiate between a natural born programmers and the rest.But he is [...]

The killer app of FON will be access to P2P networks

Tweet I have been tracking FON for two years, and I’m a ‘fonero’ since last summer. Recently I read about the ‘FON Liberator’ project, and it seems that finally the mystery of FON is over. If you analyze seriously the business model of this company and you have some basic knowledge about wireless networks, you [...]

Don’t contract hackers to change your university grade average

Tweet This is the best story I have read in years. This poor asshole was the communications director for U.S. Rep. Denny Rehberg, R-Mont tried to hire hackers to raise his recorded grade point average[1]. Sounds like something that only could happen in a sit-com, not in real life.