@aditudeinc/cloud-wrapper-core
TypeScript icon, indicating that this package has built-in type declarations

0.0.8 • Public • Published

Aditude

Easy-to-use library for integrating Aditude's Cloud Wrapper product into your application.
Available as basic methods and via React in the form of pre-built components.

Get Started

Basic Install

npm install @aditudeinc/cloud-wrapper-core


Basic Usage

Methods

lazyloadDivs

<div id="my-div-id-i-want-to-load-an-ad"></div>
import { lazyloadDivs } from '@aditudeinc/cloud-wrapper-core'

lazyloadDivs(['my-div-id-i-want-to-load-an-ad'])

refreshAdsViaDivMappings

<div id="my-div-id-to-load-an-ad"></div>
import { refreshAdsViaDivMappings } from '@aditudeinc/cloud-wrapper-core'

// must run after the div is rendered on the page
refreshAdsViaDivMappings([
  {
    baseDivId: 'left-1',
    divId: 'my-div-id-to-load-an-ad',
  }
])

Readme

Keywords

Package Sidebar

Install

npm i @aditudeinc/cloud-wrapper-core

Weekly Downloads

10

Version

0.0.8

License

NONE

Unpacked Size

13.6 kB

Total Files

6

Last publish

Collaborators

  • tmcg1998
  • jrobzs