A question I get asked frequently is “How can you monetize with Google Adsense ads in a Facebook application?”
Anyone who has tried will find it is not as easy as it sounds. This is because Facebook plays about with Javascript code as it serves your pages up. This is a security thing on their part, but it also means that a lot of standard Javascript does not function as you’d expect.
But there is a fairly easy work-around…