Page 1 of 1

Dynamically Loading Google AdSense - Is It Possible?

Posted: Wed May 11, 2005 7:38 pm
by terremoto
I've been trying to figure out a way that I can load my Google AdSense script on the fly so that when someone clicks a link in my "Recent Entries" list it will load the script for that instance.

I'm hoping that would work for Search Engine Referals coming my way as well. Any other solution I can think of results in going over the "3 block limit" when the script is written right into the entries/posts. I'm pretty certain I can attract higher paying ads with more relevance if I can pull this off.

I'm pretty new to MySQL/PHP so any assistance would be appreciated.

Dan

Re: Dynamically Loading Google AdSense - Is It Possible?

Posted: Thu May 12, 2005 2:47 pm
by garvinhicking
Can you describe where you want to place your AdSense block? I still don'T know what you want to do.

Try to edit your Template (see www.s9y.org for the Documentation) and put the AdSense code in the template where you want it...

Regards,
Garvin

Finally figured out how to do it.

Posted: Thu May 12, 2005 7:17 pm
by terremoto
I finally figured out how to do what I wanted.

I moved my Google AdCents script block to just above the {$CONTENT} which puts it just below my CSS navigation bar I added in the index.tpl file. Now when a URL is generated from the entry title my Google AdCents is sitting in the hotspot with relevant, and hopefully high paying, ads.

The way I was thinking I wanted to do it was just way too complicated and in my mind I knew there had to be a simpler way. There was.

Dan

Re: Finally figured out how to do it.

Posted: Thu May 12, 2005 7:36 pm
by garvinhicking
Great news.

Good luck then for your AdSense! I figured out on my own site it doesn'T really pay off. I've earned about hundred dollars in 1.5 years, which comes down to 5 Dollars a month. For the hassle the Google Ad Flickering brings, and the extra traffic it creates I think it doesn'T pay off for me.

Best regards,
Garvin