[Ruby] rails + openx + valueclick

Philip Hallstrom philip at pjkh.com
Fri Aug 29 15:50:33 PDT 2008


> We just integrated an OpenX ad server ( http://www.openx.org/ ) into
> http://holidaygolightly.com (stop laughing at my "career" - at least  
> I work
> with all women :) and it's pretty much killed site speed.  The OpenX  
> box is
> running at something like 3% of CPU utilization so I think the  
> slowness is
> actually loading the valueclick ads.
>
> I was wondering if there was some strategy to post load the ads so  
> the rest
> of the site doesn't wait around for them.  I was thinking of adding  
> them
> after page load event with ajax or just plain JS but didn't know if  
> that was
> kosher with advertisers or if there was some better method.
>
> Any advice?

By integrate do you mean your Rails code is making a call to generate  
the HTML for the ad?  I didn't know that was possible, but if that's  
what you mean, why not make "normal" calls to OpenX so the rest of the  
page loads around it?

I did something similar awhile ago to spit out all the ad code into an  
iframe.  That way the rest of the page is unaffected and when the  
advertisers botch the size of the ad it doesn't blow the page apart as  
it's in the iframe...

http://pjkh.com/articles/integrating-openads-with-rails.html

Or maybe I'm misunderstanding you completely :)

-philip



More information about the Ruby mailing list