CafeBazaar Advertisement SDK for Web
npm install @cafebazaar/ad-sdkThis is CafeBazaar Advertisement Sdk for Minigames. The main job of this library is to show an ad when requested.
bash
npm i @cafebazaar/ad-sdk
or
yarn add @cafebazaar/ad-sdk
or
pnpm add @cafebazaar/ad-sdk
`
And then import it:
`js
// esm
import BazaarAd from '@cafebazaar/ad-sdk';
// cjs
const BazaarAd = require('@cafebazaar/ad-sdk');
`
Note that the BazaarAd is a default exported module and you can't import part of it like this:
`js
import { x } from '@cafebazaar/ad-sdk'; // 🚫 Will throw an error
`$3
If you are on jquery era or you dont want to deal with javascript package managers, simply add an