TypeScript type definitions for IAB Tech Lab's OpenRTB (Open Real Time Bidding)
This package provides TypeScript type definitions based on the OpenRTB specification, which is a standard protocol for programmatic advertising transactions.
npm install iab-openrtb
This package depends on iab-adcom, so it's recommended to install it as well:
npm install iab-adcom
// OpenRTB v2.5
import { BidRequest, BidResponse } from "iab-openrtb/v25";
// OpenRTB v2.6
import { BidRequest, BidResponse } from "iab-openrtb/v26";
// OpenRTB v3.0
import { Request, Response } from "iab-openrtb/v30";
Using enums:
import { NoBidReasonCode } from "iab-openrtb/v30";
The package consists of the following modules:
iab-openrtb/v25
: Type definitions for OpenRTB 2.5iab-openrtb/v26
: Type definitions for OpenRTB 2.6iab-openrtb/v30
: Type definitions for OpenRTB 3.0
- TypeScript 4.0 or higher
- Node.js 14.0.0 or higher
MIT
Issues and Pull Requests are welcome at our GitHub repository.