Welcome to AdPay’s documentation!

What is AdPay?

AdPay is an element in the Adshares network. It calculates payments for individual events, based on:

  • campaign budget,
  • total events for this campaign in given period of time,
  • individual event worth, which can be calculated based on:
    • event type,
    • user value,
    • human score.

User Guide

Goal of AdPay

Provide AdServer with payment calculations, ie. answer the question: how much to pay for those events?

Architecture

AdPay is a Twisted app, backed by MongoDB and communicating with AdServer using a JSON-RPC interface.

Python stack is as follows:

  • Twisted for the core network communication and asynchronous event handling
  • txmongo for asynchronous MongoDB communication
  • fastjsonrpc for JSON-RPC protocol
  • jsonobject for easy JSON-Python object mapping

Indices and tables