Giter Site home page Giter Site logo

f3z0 / rails-ad-server Goto Github PK

View Code? Open in Web Editor NEW
77.0 4.0 16.0 94 KB

Rails Ad Server (RAdS) is a simple ad server created to manage rotating ads and handling campaign budgets.

Home Page: http://github.com/coolblade/rails-ad-server/tree/master

License: MIT License

Ruby 100.00%

rails-ad-server's Introduction

RAdS - Rails Ad Server
====

Installation:
1) Make sure rads_controller is not in use (including app/views/rads), if it is then you will need to remove it or hack this plugin to use some other naming schema.
2) Install the plugin to your app: ./script/plugin install http://github.com/coolblade/rails-ad-server.git
3) Rename the plugin so it is compatible with rails 2.0. mv vendor/plugins/rails-ad-server.git vendor/plugins/railsadserver
4) Generate rads_controller: ruby script/generate rads_gen rads
5) Create the required tables (migration generated in step 3): rake db:migrate
6) Configure the RAdS server in your database. 
	-Make Sure to include atleast one banner type in rads_banner_types and the CPM (cost per 1000 impressions). Example: (name => "skyscraper, cpm => 125)
	-Add a Campaign to rads_campaigns with the name and the budget of the campaign
	-Add a banner into rads_banners, include a url to the location of the banner in the image field (or use html to overide and display whatever html you want), include the campaign_id that was created in the last step, and then the url the banner should link to (note if you use html instead of image field then you will need to link it yourself in the html field)

You can then use show_rads_banner :type throughout your project and it will randomly display the banners from your database.

If you need to display impressions and clicks from a particular campaign you can use the view helper: show_rads_panel(campaign_id)

I apologize in advance as this is still a work in progress, would like to eventually create a admin panel for setting up the campaigns and banners outside of the database.

If you have any problems or would like to contribute email me at [email protected]


Example
=======

<%= show_rads_banner :skyscraper %>


Copyright (c) 2008 Gregory Ray, released under the MIT license

rails-ad-server's People

Contributors

f3z0 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

rails-ad-server's Issues

Create admin panel

I apologize in advance as this is still a work in progress, would like to eventually create a admin panel for setting up the campaigns and banners outside of the database.

Have you checked out ActiveScaffold? It works GREAT for simple admin panels where you are just editing records in your tables.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.