With the release of Open Measurement iOS SDK 1.3.2, the reference app source code is included with downloadable SDK binaries located at (https://tools.iab.techlab.com/omsdk). This repository is no longer updated.
A sample iOS application in Swift built to showcase OM SDK integration.
Included are 3 sample integrations:
- Native display ad
- HTML display ad
- Native video ad
- Native audio ad
- Clone the project on to your local machine to get started
- Download the latest "Demoapp" namespaced OM SDK iOS from IAB portal (https://tools.iab.techlab.com/omsdk) and link the framework to the project. Add the framework into the /OMSDK/ folder.
- Download the latest omsdk-v1.js and omid-validation-verification-script-v1.js release from the IAB portal (https://tools.iab.techlab.com/omsdk) and drop it into /OMSDK/Service/ and /OMSDK/Verification respectively.
- Build and run in Simulator
- Use Charles proxy or Safari Web Inspector to see what events OM SDK is receiving
- Choose one of the sample implementations from the table
- Wait for the ad to load
- Observe network calls to
http://iabtechlab.com:66
(the query string will include URL-encoded JSON object with OM SDK event parameters)
- The version of OM SDK framework that is provided in this sample project is for education purposes only and should not be used for production integration. To get access to production OM SDK build, please refer to the "Onboarding Guide for Integration Partners" that is published on IAB Tech Lab and follow the instructions.
- For simplicity, 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.