Giter Site home page Giter Site logo

adjustapi's Introduction

AdjustAPI

API to retrieve dataset of performance metrics (impressions, clicks, installs, spend, revenue) for a given date, advertising channel, country and operating system.

Features:

1- filter by time range, channels, countries, operating systems
2- group by one or more columns: date, channel, country, operating system
3- sort by any column in ascending or descending order
4- see derived metric CPI (cost per install) which is calculated as cpi = spend / installs

Initialize your database with fixture:

python3 manage.py migrate --run-syncdb
python3 manage.py loaddata initial_role_data.json 

start development server:

python3 manage.py runserver

Common API use-cases:

  • Show the number of impressions and clicks that occurred before the 1st of June 2017, broken down by channel and country, sorted by clicks in descending order:
{IP}:{PORT}/api/metrics/?date_to=2017-6-1&sums=clicks,impressions&group_by=channel,country&fields=channel,impressions,clicks,country

  • Show the number of installs that occurred in May of 2017 on iOS, broken down by date, sorted by date in ascending order.:
{IP}:{PORT}/api/metrics/?date_from=2017-5-1&date_to=2017-5-30&fields=installs,date,os&os=ios&sorty_value=date&sort_direction=asc

  • Show the number of impressions and clicks that occurred before the 1st of June 2017, broken down by channel and country, sorted by clicks in descending order:
{IP}:{PORT}/api/metrics/?date_from=2017-6-1&country=us&fields=revenue,os&sort_value=revenue&sort_direction=desc

  • Show CPI and spend for Canada (CA) broken down by channel ordered by CPI in descending order:
{IP}:{PORT}/api/metrics/?country=ca&fields=cpi,spend,channel&sort_value=cpi&sort_direction=desc

  • get all data:
{IP}:{PORT}/api/metrics/

adjustapi's People

Contributors

bolanasr avatar

Watchers

James Cloos avatar Vitali Kotik avatar  avatar

Forkers

bola-nasr

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.