Skip to content

missena-corp/openrtb-types

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OpenRTB v2.5 Types & Enums

This package includes all of IAB'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],
};

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 100.0%