SEO

Hiding Google AdSense in iFrames

Hiding Google AdSense in iFrames

I’m not sure if this is a surefire way to get a site booted from Google AdSense or not, but Hari K Gottipati, a Software Engineer with Motorola Inc (according to his blog) has figured out a way to earn Google AdSense Page Impressions without displying the Google AdSense ads.

This weekend I was working on some thing where I needed to hide iframe based on some action. I figured it out putting the iframe inside div tag and hiding the div tag is very easy. And then I realised that Google adsense uses iframe to display the ads and wanted to see how Google prevents me fectching the ads into a hidden iframe.

Hari says that there is no way for Google to determine whether or not the iframe is hidden because he is using a div wrapper around the iframe.

Hari adds:

Each time a visitor visits a page with an AdSense tag, a piece of JavaScript writes an iframe tag which displays the text or image ads. If you put the Google adsense script inside a div tag and if you hide the div tag, users won’t even notice the Google ads. But it actually loads the ads from Google servers into the iframe. It only works with page impression option, because Google count the number of impressions each time you load the ads into iframe.

I don’t think Google has the mechanism to check whether the user is displaying the ads that loaded from Google server or not. Its very difficult for Google to determine this case as iframe itself is not hidden, it is used inside div tag which is hidden.

Just how much could a site make by hiding its AdSense ads so no one clicks on them? I’d imagine that the CPM Impression money would be merely cents and the return on investment would be in the negative, as Google would lay the wrath of God down on publishers for doing so.

I do however believe that Hari is testing this hidden iframe just for fun and he has a nice “now you see it, now you don’t” example on his young blog, Me, My tech watch & My tech thoughts.

Screen Shot 2014 04 15 at 7.21.12 AM Hiding Google AdSense in iFrames
Loren Baker is the Founder of SEJ, an Advisor at Alpha Brand Media and runs Foundation Digital, a digital marketing strategy & development agency.
Screen Shot 2014 04 15 at 7.21.12 AM Hiding Google AdSense in iFrames

Comments are closed.

12 thoughts on “Hiding Google AdSense in iFrames

  1. This is one of the silliest posts I’ve ever seen. I’ve made thousands off of AdSense clicks, but have never even heard of making money off of impressions. This would be fraud for nothing.

  2. If I had done that I certainly wouldnt be telling everone in comments. Plus it would piss me off as a user of the site, since I would be taken to a link away from the page which I was expecting, the best way to make money is to have good orginal content that people need and want to regularly use. They you dont need to be a cheat!

  3. Hi,

    Could you show me a javascript code snipet that hide the “Powered by Google” that is located in an iframe. I got that when using google search API.

    Thanks alot

  4. “Google would lay the wrath of God down on publishers for doing so.”

    LOL. That is so true. Depending on the users Internet conetion, they may see it load and report it.

  5. Why not just play by the rules? They’re good rules; Google is serving up targeted ads that people might actually want to see, people see content they like, find products they want – what’s wrong with that model? The world has real problems waiting to be solved – work on global warming if you want a real challenge.

  6. I can understand, why folks want to try sneaky nethods to defraud google, I once had an adsense account on a very clean site with good SE traffic. For some reason ( which to this day I would love to know) google terminated my account and advised that I had to forfiet the $432 in earnings. Tough hey, well that’s their decision, what can you do! However it is wrong to try to make earnings from adsense fraudulently, remember you only hurt the advertisers, Google will always make the buck.

  7. You may make few bucks by doing this, but once you are noticed your account will be terminated, at last you will be the looser. Please dont advice this to other readers.

  8. You may make few bucks by doing this, but once you are noticed your account will be terminated, at last you will be the looser. Please dont advice this to other readers.