video-ad-network-multi-api
Pulls reports from multiple video ad networks and attempts to normalize the responses.
Last updated 4 years ago by dguttman .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install video-ad-network-multi-api 
SYNC missed versions from official npm registry.

video-ad-network-multi-api

Pulls reports from multiple video ad networks and attempts to normalize the responses. Currently supports:

  • SpotX (spotx-api)
  • LKQD (lkqd-api)
  • OneVideo (onevideo-api)

Example

var multiFetch = require('video-ad-network-multi-api')

var accounts = [
  {
    "network": "spotx",
    "username": "xxx",
    "password": "xxx"
  },
  {
    "network": "onevideo",
    "username": "xxx",
    "password": "xxx"
  },
  {
    "network": "lkqd",
    "key": "xxx",
    "secret": "xxx"
  }
]

var dateStart = '2015-10-15'
var dateEnd = '2015-10-18'

multiFetch(accounts, dateStart, dateEnd, function (err, report) {
  if (err) return console.error(err)
  console.log('report', report)
})

License

MIT

Current Tags

  • 3.2.0                                ...           latest (4 years ago)

13 Versions

  • 3.2.0                                ...           4 years ago
  • 3.1.4                                ...           4 years ago
  • 3.1.3                                ...           5 years ago
  • 3.1.2                                ...           5 years ago
  • 3.1.1                                ...           5 years ago
  • 3.1.0                                ...           5 years ago
  • 3.0.0                                ...           5 years ago
  • 2.0.1                                ...           5 years ago
  • 2.0.0                                ...           5 years ago
  • 1.0.3                                ...           5 years ago
  • 1.0.2                                ...           5 years ago
  • 1.0.1                                ...           5 years ago
  • 1.0.0                                ...           5 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (6)
Dev Dependencies (1)
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |