Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

A simple module to integrate with the Adform API

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 lib
Octocat-spinner-32 test
Octocat-spinner-32 .gitignore
Octocat-spinner-32 .travis.yml
Octocat-spinner-32 README.md
Octocat-spinner-32 adform.js
Octocat-spinner-32 example.js
Octocat-spinner-32 package.json
README.md

node-adformbuild status

About

A node.js module to work with the adform api.

Warning

This is far from feature complete. The API will change dramaticly in ways that aren't backwards compatible. There might be bugs etc etc.

Installation

npm install adform

Example

    // this file is also available as example.js in the project root
    var adform = require('adform');

    // ticket is a security token you get when logged in used to do further
    // actions with the api
    adform.login(userName, password, function(err, ticket) {
        adform.getAdvertisers(ticket, function(err, advertisers) {
            // advertisers is a list of advertisers (clients) associated with
            // the logged in user
            console.log('Advertisers:');
            advertisers.forEach(function(advertiser) {
                console.log('name: %s id: %s', advertiser.name, advertiser.id);
            });
        });
    });
Something went wrong with that request. Please try again.