Wondering what’s next for npm?Check out our public roadmap! »

    @truex/ctv-ad-renderer

    1.2.3 • Public • Published

    @truex/ctv-ad-renderer

    Overview

    true[X]'s ctv html/javascript ad renderer

    YARN / NPM

    yarn add @truex/ctv-ad-renderer

    or

    npm install @truex/ctv-ad-renderer

    Usage

    first...

    import { TruexAdRenderer } from '@truex/ctv-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/ctv-ad-renderer@1.0.0

    Keywords

    none

    Install

    npm i @truex/ctv-ad-renderer

    DownloadsWeekly Downloads

    327

    Version

    1.2.3

    License

    none

    Unpacked Size

    117 kB

    Total Files

    5

    Last publish

    Collaborators

    • avatar
    • avatar
    • avatar
    • avatar
    • avatar