Admob iOS Wrapper

From POKKT DOCUMENTATION
Jump to: navigation, search

Pokkt Integration to AdMob

Last Update: 21st September, 2017

Download Latest Version AdMob Wrapper.


Step 1: Getting Started

The following instructions assume you are already familiar with the AdMob Mediation Network and have already integrated the Google Mobile Ads SDK into your application. Otherwise, please start by reading the following articles for a walk-through explanation of what mediation is, how to use the AdMob Mediation UI, and instructions on how to add AdMob mediation code into your app.


Step 2: Adding Your Application to Your Pokkt Publisher's Account

  • Create Account and log-in at https://www.pokkt.com
  • Add your application and get its application Id and Security key.

Step 3: Integrating the AdMob Mediation Adapter

  • Add PokktSDK.framework to your XCode project and link to it.
  • Add PokktCustomInterstitial , PokktCustomBanner and PokktCustomRewardedVideo to your Xcode project.
  • In the Build Settings of XCode add -ObjC to “Other Linker Flags”.
  • Your Project needs to have following frameworks to use PokktSDK.
    • CoreData.framework
    • Foundation.framework
    • MediaPlayer.framework
    • SystemConfiguration.framework
    • UIKit.framework
    • CoreTelephony.framework
    • EventKit.framework
    • AdSupport.framework
    • CoreGraphics.framework
    • CoreMotion.framework
    • MessageUI.framework
    • EventKitUI.framework
    • CoreLocation.framework
    • AVFoundation.framework
    • libc++.tbd

Step 4: Adding a Custom Event

  1. Sign in to your AdMob account at https://apps.admob.com
  2. Click the Monetize tab.
  3. Under All apps on the left-hand side, select the app you want to update.
  4. Click the link in the Mediation column to the right of the ad unit you want to modify.

    Admob wrp adunit ios.jpg

  5. Click New Ad Network.

    Admob wrp mediation ios.jpg

  6. Click Custom event, and provide the following details:
    • Class Name: Enter the name of the custom event class that you will implement in your app code.
    • Label: Enter the name for the custom event. This is used in reporting and cannot be changed later.
    • Parameter(Mandatory): Enter a JSON string as follows:

      {
      "POKKT_SCREEN_NAME":"Screen Created on Pokkt Dashboard",
      "POKKT_APP_ID":"Pokkt App Id",
      "POKKT_SEC_KEY":"Pokkt App Security Key",
      "POKKT_THIRD_PARTY_USERID":"Unique user id as in your app",
      "POKKT_REWARD_NAME":"Virtual currency As per your App",
      "POKKT_DEBUG":true/false
      }
    Admob wrp network ios.jpg
  7. Click Continue.

Step 5: Testing your application

Congratulation - that's it! You may now run your app and see Pokkt ads in action.