How do you load Adsense Ads dynamically? (Properly)

1 replies
  • SEO
  • |
Hi guys,

stupid firefox crashed on me so I keep it short. As you might know the first Adsense unit gets the highest paying ads, so it should be the one with the most clicks.

I use this to load ads dynamically:

PHP Code:
var loader1 document.getElementById('partnerboxloader1'); 

if (
document.getElementById('partnerbox1')){

document.getElementById('partnerboxloader1').style.display="block";

document.getElementById('partnerbox1').appendChild(loader1); 


But whenever I click the back button the Javascript fails and my ads look like crap (only 50% of the ads or so)

So .. how do you do it PROPERLY?

Also, anyone has good experiences with Google AdManager?

Thanks for sharing!

Best,
Oliver
#ads #adsense #dynamically #load #properly
  • Profile picture of the author sOliver
    Anyone must know how to do this properly, eh?
    Signature

    Get help with your online ventures and keep growing your web assets: www.webmaster.net

    {{ DiscussionBoard.errors[2638666].message }}

Trending Topics