Giter Site home page Giter Site logo

adzerk-dot-net's Introduction

Adzerk .NET API Client

An unofficial API client for the Adzerk API written in C# for use in .NET projects.

  • a warning
  • introduction
  • getting started
  • more information

a warning

This project is currently under active development. Even though I'm using it in production, I don't really recommend that you do.

introduction

Adzerk exposes almost all of your campaign and advertiser data through the API, but getting it is somewhat stressful: there are numerous quirks and intricacies to worry about (cf. "Criteria"). This library wraps all that up in a neat little package for your dot-netting.

getting started

Install the package on NuGet. It's marked as development at the moment because it's under development. Bug reports and feature requests welcome, pull requests even more welcome.

You'll want to use the library.

using Adzerk.Api;

And you will need your API key from Adzerk to create a client.

var adzerk = new Client("MY_API_KEY");

All of the various list methods are available to retrieve records.

var sites = adzerk.ListSites();
var zones = adzerk.ListZones();

The reporting API is also available, implement IReport or just use the simple report builder Report.

using Adzerk.Api.Models;


var report = new Report
(
    new DateTime(2015, 1, 1),
    new DateTime(2015, 12, 31)
);

report.AddParameter("advertiserId", 1234);
report.AddParameter("campaignId", 6789);

report.AddGroupBy("flightId");  // API uses optionId but report builder fixes it

var result = await adzerk.RunReport(report);

more information

For more information, see the Adzerk API Documentation.

adzerk-dot-net's People

Contributors

couchand avatar

Watchers

 avatar  avatar  avatar

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.