TypeScript type definitions for IAB Tech Lab's AdCOM (Advertising Common Object Model).
This package provides TypeScript type definitions based on the AdCOM v1.0 specification. AdCOM is a common object model for programmatic advertising transactions.
npm install iab-adcom
import { AdCOM } from 'iab-adcom';
// or
import { DisplayPlacement } from 'iab-adcom/placement';
import { Site } from 'iab-adcom/context';
// AdCOM.Placement.DisplayPlacement
// AdCOM.Media.Ad
// AdCOM.Context.Site
enum:
import { AudioVideoCreativeSubtype } from 'iab-adcom';
// or
import { VideoPlacementType } from 'iab-adcom/enum';
The package consists of the following modules:
iab-adcom
: Root moduleiab-adcom/media
: Definitions for ad creatives and metadataiab-adcom/context
: Definitions for user, device, and delivery contextiab-adcom/placement
: Definitions for ad placementsiab-adcom/enum
: Enumeration definitions
- TypeScript 4.0 or higher
- Node.js 14.0.0 or higher
MIT
Issues and pull requests are welcome at the GitHub repository.