1.0.1 • Published 5 months ago

iab-openrtb v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
5 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

5 months ago

1.0.0

5 months ago

0.4.3

6 months ago

0.4.2

6 months ago

0.4.1

6 months ago

0.4.0

6 months ago

0.3.10

6 months ago

0.3.9

6 months ago

0.3.8

6 months ago

0.3.7

6 months ago

0.3.6

6 months ago

0.3.5

6 months ago

0.3.4

6 months ago

0.3.3

6 months ago

0.3.2

6 months ago

0.3.1

6 months ago

0.3.0

6 months ago

0.2.4

7 months ago

0.2.3

7 months ago

0.2.2

7 months ago

0.2.1

7 months ago

0.2.0

7 months ago