@truex/ad-renderer
v1.12.6
Published
true[X]'s javascript ad renderer
Downloads
848
Keywords
Readme
@truex/ad-renderer
Overview
true[X]'s ctv html/javascript ad renderer
YARN / NPM
yarn add @truex/ad-renderer
or
npm install @truex/ad-renderer
Usage
first...
import { TruexAdRenderer } from '@truex/ad-renderer';
then (3 ways to use)...
const tar = new TruexAdRenderer('this-is-where-your-vast-config-url-goes');
tar.init().then((vastConfig) => {
tar.start({ vastConfig });
});
const thisIsAVastConfigObject = {};
const tar = new TruexAdRenderer(thisIsAVastConfigObject);
const tar = new TruexAdRenderer();
tar.init().then((vastConfig) => {
const choiceCardUrlOverride =
'this-is-where-your-optional-choice-card-url-goes';
const containerUrlOverride =
'this-is-where-your-optional-container-card-url-goes';
tar.start({ vastConfig, choiceCardUrlOverride, containerUrlOverride });
});
CDN
https://cdn.jsdelivr.net/npm/@truex/[email protected]