Hi guys, What is the best way to include ad banners in rails? Do you include them in default layout? What is the ideal way if the ad has to change each time? Thanks, -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
> What is the best way to include ad banners in rails? Do you include > them > in default layout? What is the ideal way if the ad has to change each > time?My advice would be to not to do it. Tie Rails into an existing ad server. You really don''t want to have to write your own ad server if you can avoid it. You may find this useful: http://pjkh.com/articles/2006/12/21/integrating-openads-with-rails I''m assuming you want to sell your own banners, otherwise integrating Google Adsense or similar is as simple as just dropping in the code. -philip --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Philip Hallstrom wrote:>> What is the best way to include ad banners in rails? Do you include >> them >> in default layout? What is the ideal way if the ad has to change each >> time? > > My advice would be to not to do it. Tie Rails into an existing ad > server. You really don''t want to have to write your own ad server if > you can avoid it. > > You may find this useful: > http://pjkh.com/articles/2006/12/21/integrating-openads-with-rails > > I''m assuming you want to sell your own banners, otherwise integrating > Google Adsense or similar is as simple as just dropping in the code. > > -philipThank Philip. I was actually investigating both options, making my own or using adsense.Can you please share some information (or links) on how to integrate Adsense in my code? Thanks, Youssef -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
> Philip Hallstrom wrote: >>> What is the best way to include ad banners in rails? Do you include >>> them >>> in default layout? What is the ideal way if the ad has to change >>> each >>> time? >> >> My advice would be to not to do it. Tie Rails into an existing ad >> server. You really don''t want to have to write your own ad server if >> you can avoid it. >> >> You may find this useful: >> http://pjkh.com/articles/2006/12/21/integrating-openads-with-rails >> >> I''m assuming you want to sell your own banners, otherwise integrating >> Google Adsense or similar is as simple as just dropping in the code. >> >> -philip > > Thank Philip. > > I was actually investigating both options, making my own or using > adsense.Can you please share some information (or links) on how to > integrate Adsense in my code?Just drop the code into your views... If you want to make it a bit more configurable, setup a simple admin tool where your ad guy can paste the adsense code into a text_area and then include that. Add some keys so in your view you''d do something like: <%= AdsenseCode.find_by_key("homepage_bottom_right") %> Or similar. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On way to do this is as mentioned on this blog. I used it and it gave some simple steps to getting google ads up and running on my RoR application http://atservice.blogspot.com/2008/07/google-ad-sense-code-implementation.html On Mar 13, 9:37 pm, Youyou Semsem <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> Hi guys, > > What is the best way to include ad banners in rails? Do you include them > in default layout? What is the ideal way if the ad has to change each > time? > > Thanks, > -- > Posted viahttp://www.ruby-forum.com/.--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---