@iabgpp/stub
v3.1.7
Published
Cmp API Stub code. May be included in commonjs loader or dropped directly on the page.
Readme
@iabgpp/stub
Cmp API Stub code. May be included in commonjs loader or dropped directly on the page.
Installation
npm install @iabgpp/stubUsing
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 buildBuilt stub will be output to ./lib
Getting queue of commands
__gpp("ping", function (data, success) {
console.log("ping success: " + success + " data: " + JSON.stringify(data));
});