Socket
Socket
Sign inDemoInstall

@missena/openrtb-types

Package Overview
Dependencies
0
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @missena/openrtb-types

IAB's OpenRTB v2.5 spec types and enums in TypeScript


Version published
Weekly downloads
1
Maintainers
1
Install size
40.9 kB
Created
Weekly downloads
 

Readme

Source

OpenRTB v2.5 Types & Enums

This package includes all of IAB's OpenRTB v2.5 spec types and enums in TypeScript.

Installation

Using npm:

$ npm i --save openrtb-types

Usage

Import needed types and use them to type-guard your code:

import { SeatBid, Bid, BidResponse } from "openrtb-types";

let bid: Bid = {
  id: "abc",
  impid: "abc",
  price: 1.23,
};

let seatBid: SeatBid = {
  bid: [bid],
};

let bidResponse: BidResponse = {
  id: "abc",
  seatbid: [seatBid],
};

FAQs

Last updated on 12 Jan 2023

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc