Skip to content

TypeScript type definitions for IAB Tech Lab's OpenRTB (Open Real Time Bidding)

License

Notifications You must be signed in to change notification settings

hogekai/types-iab-openrtb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

iab-openrtb

TypeScript type definitions for IAB Tech Lab's OpenRTB (Open Real Time Bidding)

Overview

This package provides TypeScript type definitions based on the OpenRTB specification, which is a standard protocol for programmatic advertising transactions.

Installation

npm install iab-openrtb

This package depends on iab-adcom, so it's recommended to install it as well:

npm install iab-adcom

Usage

// 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";

Structure

The package consists of the following modules:

  • iab-openrtb/v25: Type definitions for OpenRTB 2.5
  • iab-openrtb/v26: Type definitions for OpenRTB 2.6
  • iab-openrtb/v30: Type definitions for OpenRTB 3.0

Requirements

  • TypeScript 4.0 or higher
  • Node.js 14.0.0 or higher

License

MIT

Related Links

Contributing

Issues and Pull Requests are welcome at our GitHub repository.

About

TypeScript type definitions for IAB Tech Lab's OpenRTB (Open Real Time Bidding)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published