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
Dynamically Loading Google AdSense - Is It Possible?
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Re: Dynamically Loading Google AdSense - Is It Possible?
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
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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Finally figured out how to do it.
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
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
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Re: Finally figured out how to do it.
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
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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/