1.0.1 • Published 7 years ago

openrtb-types v1.0.1

Weekly downloads
55
License
MIT
Repository
github
Last release
7 years ago

OpenRTB v2.5 Types & Enums

This package includes all of AIB's OpenRTB v2.5 spec types and enums in TypeScript.

Installation

Using npm:

$ npm i --save openrtb-types

Usage

Import needed types and use them to type-guard your code:

import {SeatBid, Bid, BidResponse} from 'openrtb-types'


let bid: Bid = {
    id: 'abc',
    impid: 'abc',
    price: 1.23
};

let seatBid: SeatBid = {
    bid: [bid]
};

let bidResponse: BidResponse = {
    id: 'abc',
    seatbid: [seatBid]
};