Adroller: An API Wrapper for AdRoll

========

alt tag

Installation

Add this line to your application's Gemfile:

gem 'adroller'

And then execute:

$ bundle

Or install it yourself as:

$ gem install adroller

Usage

General Info

API version: v1

API base url: https://api.adroll.com/v1/

API documentation: https://app.adroll.com/api/v1/docs

Setup

Set your API username, password and organization eid in your environment

ENV['ADROLL_USERNAME'] = 'Your User Name'

ENV['ADROLL_PASSWORD'] = 'Your Password'

ENV['ADROLL_ORGANIZATION'] = 'Your Organization eid'

Method Calls

This gem uses basic abstraction for the AdRoll services

A method call will return a JSON response directly from the api

AdRoll::Api::Name.Method(Parameters)

Example

params =

name: 'My Advertisable',

organization: 'FDS32DFA3DK341B4KAL4RK',

set_as_default: true,

url: 'http://www.thisisaurl.com',

product_name: 'My Product'

advertisable = AdRoll::Api::Advertisable.create(params)

=> {:name => 'My Advertisable' ... }