iab-openrtb v1.0.1
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-openrtbThis package depends on iab-adcom, so it's recommended to install it as well:
npm install iab-adcomUsage
// 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.5iab-openrtb/v26: Type definitions for OpenRTB 2.6iab-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.
8 months ago
9 months ago
9 months ago
9 months ago
9 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago