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',
}
])