Google Adsense Plugin Enhanced

Discussion corner for Developers of Serendipity.
Post Reply
thom
Regular
Posts: 7
Joined: Wed Dec 13, 2006 3:03 pm
Contact:

Google Adsense Plugin Enhanced

Post by thom »

Ok, so, I'm trying to find my way around Serendipity, and I'm having a blast. I love tinkering, almost as much as posting :D

Anyway, I added the google adsense plugin, turned it on, and was disappointed there wasn't an admin interface to change the colors. So, the programmer in me took over.

I added new configuration fields allowing you to control all the colors of the ad.

It works great. The code is really simple. Two questions:

1. Is there some place to update/upload/share plugins? I can host it on my server, but wasn't sure if there was a formal repository.

2. There seems to be another language file with the base plugin, but I don't speak that language, so I'm not sure how to handle that. Sorry for those that use different languages.

Check out the results at http://www.digitalthom.com

--Thom
yellowled
Regular
Posts: 7111
Joined: Fri Jan 13, 2006 11:46 am
Location: Eutin, Germany
Contact:

Re: Google Adsense Plugin Enhanced

Post by yellowled »

thom wrote:1. Is there some place to update/upload/share plugins? I can host it on my server, but wasn't sure if there was a formal repository.
That would be http://spartacus.s9y.org/. Just wait for Garvin to approach you about this :)
thom wrote:2. There seems to be another language file with the base plugin, but I don't speak that language, so I'm not sure how to handle that.
It should be pretty easy to find some volunteer(s) among us to do that translation(s) for you. What language is it? (If you don't know, just post the name of the language file you have in mind.)

YL
thom
Regular
Posts: 7
Joined: Wed Dec 13, 2006 3:03 pm
Contact:

Re: Google Adsense Plugin Enhanced

Post by thom »

YellowLed wrote:It should be pretty easy to find some volunteer(s) among us to do that translation(s) for you. What language is it? (If you don't know, just post the name of the language file you have in mind.)
That would be great. I'll wait to hear from Garvin.

The name of the file that needs to be translated is lang_bg.inc.php.

--Thom
judebert
Regular
Posts: 2478
Joined: Sat Oct 15, 2005 6:57 am
Location: Orlando, FL
Contact:

Post by judebert »

He's on a short trip right now, so it'll be a little while; perhaps a week, maybe after Christmas. I sent him a PM so we won't lose track of this thread.
Judebert
---
Website | Wishlist | PayPal
yellowled
Regular
Posts: 7111
Joined: Fri Jan 13, 2006 11:46 am
Location: Eutin, Germany
Contact:

Re: Google Adsense Plugin Enhanced

Post by yellowled »

thom wrote:The name of the file that needs to be translated is lang_bg.inc.php.
Hm, that's Bulgarian. I have no idea who usually does those, but I think Carl know someone to do them. So let's just wait for Carl to chime in :)

YL
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Google Adsense Plugin Enhanced

Post by garvinhicking »

Hi!

There's a reason why the adsense plugin doesn't allow color choosing:

Google forbids it! Their licensing does not allow for tools that create adsense codes. So we can't include your patch, as good as it is. :-(

Here's the originating thread:

http://www.s9y.org/forums/viewtopic.php ... lor+colour

I know...this sucks. But google does not respond to our questions on how to circument this problem. :(

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/
XenoPhage
Regular
Posts: 20
Joined: Mon Nov 20, 2006 10:52 pm

Re: Google Adsense Plugin Enhanced

Post by XenoPhage »

garvinhicking wrote:Hi!

There's a reason why the adsense plugin doesn't allow color choosing:

Google forbids it! Their licensing does not allow for tools that create adsense codes. So we can't include your patch, as good as it is. :-(

I know...this sucks. But google does not respond to our questions on how to circument this problem. :(

Best regards,
Garvin
Fast forward about 17 months.. And Tada! We have a solution. Managed Ads from Google.

I've whipped together a new plugin, based on the original AdSense plugin, that handles Managed Ads. The nice bit is that once you set it up, changing colors and content happens on the Google side, for the most part.

So, any interest in this one? Check it out here : http://blog.godshell.com
judebert
Regular
Posts: 2478
Joined: Sat Oct 15, 2005 6:57 am
Location: Orlando, FL
Contact:

Post by judebert »

That integrates very nicely with your site. Can you comment on the difference between AdSense and Managed Ads? Specifically, any reason I'd want to stick with AdSense instead of switching to Managed Ads?
Judebert
---
Website | Wishlist | PayPal
XenoPhage
Regular
Posts: 20
Joined: Mon Nov 20, 2006 10:52 pm

Post by XenoPhage »

judebert wrote:That integrates very nicely with your site. Can you comment on the difference between AdSense and Managed Ads? Specifically, any reason I'd want to stick with AdSense instead of switching to Managed Ads?
Managed Ads is just a new way of handling AdSense, it's not different, per se. Basically, Google moved the ability to change the ads from the html code itself to the Google servers. So, instead of having to change the code in your HTML, you merely update the settings on the Google AdSense page..

It seems to work pretty well.. I've been playing around with the parameters on other pages, updating colors, content, etc... Nice system, actually...
Post Reply