1.0.1 • Published 8 months ago

iab-openrtb v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
8 months ago

iab-openrtb

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

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:

// OpenRTB v2.5
import { NoBidReasonCode, LossReasonCode } from "iab-openrtb/v25";
// OpenRTB v2.6
import { NoBidReasonCode, LossReasonCode } from "iab-openrtb/v26";
// OpenRTB v3.0
import { NoBidReasonCode, LossReasonCode } from "iab-openrtb/v30";

Note: Currently only NoBidReasonCode and LossReasonCode enums are supported. Other enums are defined in the iab-adcom package.

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.

1.0.1

8 months ago

1.0.0

9 months ago

0.4.3

9 months ago

0.4.2

9 months ago

0.4.1

9 months ago

0.4.0

10 months ago

0.3.10

10 months ago

0.3.9

10 months ago

0.3.8

10 months ago

0.3.7

10 months ago

0.3.6

10 months ago

0.3.5

10 months ago

0.3.4

10 months ago

0.3.3

10 months ago

0.3.2

10 months ago

0.3.1

10 months ago

0.3.0

10 months ago

0.2.4

10 months ago

0.2.3

10 months ago

0.2.2

10 months ago

0.2.1

10 months ago

0.2.0

10 months ago