A sample web application built to showcase a canonical OM SDK for Web integration.
- Node v10.16
- NPM v6.9.0
nvm is recommended for installing and managing Node and NPM.
- Install dependencies with
npm install
- Copy the dependencies into
static/
:- If in SDKJS repo: Run
npm run buildDeps
- If in JSClients repo:
- Copy the OM SDK for Web into
./static/omweb-v1.js
- Copy the OM Domain Loader into
./static/.well-known/omid/omloader-v1.html
- Copy the Validation Verification Script into
./static/omid-validation-verification-script-v1.js
- Copy the OM SDK for Web into
- If in SDKJS repo: Run
- Run the dev server by running
npm run start
- Open http://localhost:8080 in a browser
If you'd like to specify your own default settings, override the values in ./templates/.settings.default.json
.
Home and test case pages on iPhone X:
This demo app does not implement parsing of VAST or any other ad response formats. Asset URLs, verification script URLs and parameters are specified as constants instead. Please refer to IAB Tech Lab for details regarding how verification resources are represented in various ad formats.