Coder Social home page Coder Social logo

ad_server's Introduction

ad模块,负责广告触发

读取上游的买词,根据本地的广告文件,提取出所有满足条件的广告(超出数量限制则直接截断),返回给上游广告信息

请求数据格式: '\t': adnum, bidword, bidword, ...

返回的广告数据格式: '\t': winfoid, bidword, bid, q, charge, desc1, desc2, showurl, targeturl

广告数据文件格式: '\t': winfoid, bidword, bid, q, title, desc1, desc2, targeturl, showurl winfoid: uint64_t bidword: str bid: int q: int title: str desc1: str desc2: str targeturl: str showurl: str

gsp: 广义二价计费 排序: q * bid 计价: price1 = q2 * bid2 / q1 (q1 != 0) or bid1 (q1 == 0) 推论: q2 * bid2 <= q1 * bid1 => q2 * bid2 / q1 <= bid1 => price1 <= bid1

ad_server's People

Contributors

qibolee avatar

Stargazers

 avatar

Watchers

James Cloos avatar skyformat99 avatar  avatar

Forkers

skyformat99

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.