@iabgpp/stub

3.1.1 • Public • Published

@iabgpp/stub

Cmp API Stub code. May be included in commonjs loader or dropped directly on the page.

Installation

npm install @iabgpp/stub

Using

include via module loading
import * as cmpstub from "@iabgpp/stub";

or

const cmpstub = require("@iabgpp/stub");

then execute:

cmpstub();

this should generate the __gpp() window function with the queing functionality.

to drop on a page
git clone https://github.com/InteractiveAdvertisingBureau/iabgpp-es.git

cd iabgpp-es/modules/stub/

npm install

npm run build

Built stub will be output to ./lib

Getting queue of commands
__gpp("ping", function (data, success) {
  console.log("ping success: " + success + " data: " + JSON.stringify(data));
});

Readme

Keywords

none

Package Sidebar

Install

npm i @iabgpp/stub

Weekly Downloads

99

Version

3.1.1

License

Apache-2.0

Unpacked Size

3.72 kB

Total Files

3

Last publish

Collaborators

  • imayankmishra
  • chuff