Git Product home page Git Product logo

ad_server's Introduction

ad_server

A small ad-server utilty for serving banners for diffrent campaigns and display them based on the campaign. To do so, The program is calculating a eCPM based on the campaign initial bid price and type (CPM,CPC,CPA) and uses it to priortize serving the banner with the highest eCPM.

Requirement

  1. Python 2.7
  2. MySQL server
  3. MySQL Connector c 6.0.2 (for MySQLdb) - https://dev.mysql.com/downloads/file/?id=378015
  4. Microsoft Visual C++ Compiler for Python 2.7 (for MySQLdb)- https://www.microsoft.com/en-us/download/confirmation.aspx?id=44266
  5. MySQLdb - pip install mysql
  6. Django Webserver - pip install Django==1.9.1

Installing

  1. Installing MySql server on localhost:8080 using U:root P:root
  2. Importing the ad_db.sql (attached) to a new ad_db schema.
  3. Making sure all requierments has been met.
  4. running the script inside the root program directory (\ad_server) : python manage.py runserver

Urls

Banners: http://localhost:8000/<requested_banner_size> Banners list: http://localhost:8000/banner/list Campaign list: http://localhost:8000/campaign/list Campaign Banners: http://localhost:8000/campaign_banner/list Django Admin: http://localhost:8000/admin

Django Admin

To use django admin run the script: python manage.py createsuperuser

ad_server's People

Contributors

avital-malka avatar

Watchers

James Cloos avatar Rozman avatar

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.