Admob iOS Wrapper

From POKKT DOCUMENTATION
(Redirected from Admob iOS wrapper)
Jump to: navigation, search

Pokkt Integration to AdMob

Last Update: 2nd June, 2020

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.


GDPR


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 PokktAdMobWrapper.framework to your Xcode project and link to it.
  • Note: For Unity, add the above twos to your project’s Assets->Plugins->iOS folder. PokktSDK Unity Plugin is not needed for AdMob/MoPub Mediation.
  • Add PersonalizedAdConsent.framework to your Xcode project and link to it.
  • In the Build Settings of XCode add -ObjC to “Other Linker Flags”.
  • Your Project needs to have the 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. Under All apps on the left navigation, select the app you want to update.
  3. Click Mediation on the left navigation menu item.
  4. Select the mediation group to which POKKT should be added.

    Admob andr mediation.jpg

  5. Edit the mediation group to add CUSTOM EVENT.

    Admob andr adunit.jpg

  6. Click Add Custom event. Add Label for POKKT and ecpm value and then click continue.

    Admob andr addcustom.jpg

  7. Configure the ad units and provide the following details:
    • Class Name: Enter the name of the custom event class that you will implement in your app code.
      • For Rewarded Video: Enter PokktCustomRewardedVideo
      • For Interstitial: Enter PokktCustomInterstitial
      • For Banner: Enter PokktCustomBanner
    • 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:

      {
      "SCREEN":"Screen Created on Pokkt Dashboard", 
      "APPID":"Pokkt App Id",
      "SECKEY":"Pokkt App Security Key",
      "TPID":"Unique user id as in your app", 
      "DBG":”debug value -> true/false”
      }
      
    Admob andr configure.jpg

  8. Click Done.

Step 5: Testing your application

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