POKKT AdMob Adapter Integration v8.2.0 iOS

Overview

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. Mediation Overview : Click Here.arrow-up-right Instruction : Click Here.arrow-up-right

Downloaded SDK package will contain.

  • Pokkt Documents

Step 1: Adapter Integration

The GoogleMobileAdsMediationPokktAds is installed using CocoaPods. To do this, add the following line to your Podfile. Refer to the following example: 1.

pod 'GoogleMobileAdsMediationPokktAds'

Example 1

Then from the command line run:

pod install

Configuring App Transport Security (ATS)

Add the NSAllowsArbitraryLoads to your app's Info.plist file to disable ATS restrictions. As per the Apple guideline, the below code is required to allow a non-secure network, and the default value is false. For additional details click here.arrow-up-right

<key>NSAppTransportSecurity</key>

<dict>

<key>NSAllowsArbitraryLoads</key>

<true/>

</dict>

Click on Info.plist and​​ add the GADApplicationIdentifier key and its value. Refer to the following example: 2

Example 2

GADApplicationIdentifier / AppID value found on AdMob dashboard. First sign in to your AdMob account at click herearrow-up-right. Click on Apps on the left panel in the AdMob account and click view all apps. Refer to the following example: 3.

Example 3

Copy App ID that belongs to your app. Refer to the following example: 4.

Example 4

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

• Create Account and log-in at http://www.pokkt.comarrow-up-right

• Add your application and get its application Id and Security key.

• Create Screen Ids to be used in AdMob dashboard to set ad source.

This one parameter is accepted by almost all API’s of Pokkt SDK. This controls the placement of ads and can be created on Pokkt Dashboard.

Developer needs to create screens in the Pokkt Developer account.

Step 3: Adding a Custom Event

  1. Sign in to your AdMob account at https://apps.admob.com.

  2. Under All apps on the left-hand side, 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.

  1. Click Custom event under AdSources, and provide the following details:

  • Label: Enter the name for the custom event. This is used in reporting and cannot be changed later.

  • Click Continue and Add class name and Parameters. Class Name (Mandatory) Enter the name as follows:

For Rewarded Video: PokktCustomRewardedVideo

For Interstitial: PokktCustomInterstitial

For Banner: PokktCustomBanner

  1. Parameter : Enter a JSON string as below. Screen, App Id and Seckey are mandatory. Rest all are optional.

{

"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”

}

Step 4: Test Your Application

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

It will take around 6 hours time to reflect the changes made in the AdMob dashboard.

Test Ads

Application Id : eee33f012ee30473abcda10c65593d97

Security Key : 0adf197193966c9f9c25485154897398

Sample Screen Id for Video : 129fda6f5d8c4f5ea7450ce8b9c94eb8

Sample Screen Id for Interstitial : 3f3d981b416864215563a7ddfecb93f2

Sample Screen Id for Banner : 07d5ffd1766b28cc9b25f99d4b0c22ea

Last updated