This guide is intended for publishers who are interested in serving;

  • Banner Ads
  • MRect Ads
  • Fullscreen Interstitials

from PubNative using the AdMob mediation network. This document will help setting up of the mediation adapter with your iOS application and set up any additional request parameters.

Requirements

  • AdMob iOS SDK
  • PubNative iOS SDK
  • PubNative AdMob iOS Adapter
  • An App Token obtained from PubNative Dashboard
  • A Placement Name configured and obtained from the PubNative Dashboard

Note: At the moment, this adapter project is supporting the versions down below:

  • Pubnative.framework: 2.0.1
  • AdMob: 7.21.0
  • iOS: Base SDK supports 8.0 and up. Full-featured SDK supports 9.0 and up.

Install AdMob iOS SDK

Download and install the AdMob iOS SDK as described in the documentation.

Install PubNative iOS SDK

Download and install the PubNative iOS SDK as described in here.

Important Note: PubNative iOS SDK supports iOS 8.0 and up. Full-featured SDK supports iOS 9.0 and up.

Install PubNative AdMob iOS Adapter

  • Download PubNative AdMob adapter files and add them to your project.

  • To do this, drag and drop the admob folder into your Xcode application group. (Be sure to check the "Copy items into destination group's folder" option).

Configuring Custom Events

PubNative AdMob iOS Adapter supports the following ad formats:

Adding a Custom Event of Banner

  1. Sign in to your AdMob account.
  2. Choose an application to configure mediation.
  3. Create new Ad Unit.
  4. Go to Mediation section.
  5. Create new mediation or modify existing one.
852
  1. Choose a Banner type.
  2. Add new Custom Event.
  3. Setup all parameters as you want at next screen, and go to next.
PNAMBannerCustomEvent
{“app_token”: “<YOUR_APPTOKEN>”, “placement”: “<PLACEMENT_NAME>”}

Adding a Custom Event of MRect

Same procedure as for Banners. The only difference is that you need to configure it for Medium placements.

Adding a Custom Event of Interstitial

  1. Sign in to your AdMob account.
  2. Choose an application to configure mediation.
  3. Create new Ad Unit.
  4. Go to Mediation section.
  5. Create new mediation or modify existing one.
852
  1. Choose an Interstitial type.
  2. Add new Custom Event.
  3. Setup all parameters as you want at next screen, and go to next.
PNAMInterstitialCustomEvent
{“app_token”: “<YOUR_APPTOKEN>”, “placement”: “<PLACEMENT_NAME>”}