Today creative developers use a variety of different SDKs from many rich media vendors, each with its own set of APIs and integration requirements. This means rich media developers must often build different versions of the same creative in order to deploy across different apps. Developing a single API that SDK vendors can support is the goal of developing a rich media standard.
Once you've downloaded and installed the PubMatic iOS SDK, use the following sections to use the SDK to add MRAID support to your app:
MRAID is the IAB Mobile Marketing Center Of Excellence’s project to define a common API for creating mobile, Rich Media ads that run in mobile apps. The objective of MRAID is to simplify Rich Media ad deployment by creating an open standard and set of industry best practices to which leading publishers, developers, and vendors can contribute and adopt.
Display Rich Media Ad
Once you've performed a successful integration with Banner or Interstitial ads, you can easily support MRAID ads by implementing the following delegate methods that let Rich Media ads access mobile device functionality to enhance the user's interaction with the ads.
Here is an example delegate implementation for
To display Rich Media ads as interstitial, there are similar delegate methods in
Supporting MRAID Features That Require User Authorization
MRAID features that require user authorization include:
- Save pictures to a device's photo library.
- Create a new event in a device's calendar.
For MRAID to access these features, you must include respective usage keys in your app’s
Info.plist file. Each key must also include a purpose string. Also, to protect user privacy, any iOS app linked on or after iOS 10, which accesses either of these features, must statically declare the intent to do so.