# 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.](https://support.google.com/admob/answer/3063564?visit_id=637711005693608961-1689371030\&rd=1) Instruction : [Click Here.](https://developers.google.com/admob/ios/quick-start)

**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' |
| -------------------------------------- |

<figure><img src="/files/ifV0ASbPF5cHfPsv0XPJ" alt=""><figcaption><p><strong>Example 1</strong></p></figcaption></figure>

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.](https://stackoverflow.com/questions/31216758/how-can-i-add-nsapptransportsecurity-to-my-info-plist-file)

| <p>\<key>NSAppTransportSecurity\</key></p><p>\<dict></p><p>\<key>NSAllowsArbitraryLoads\</key></p><p>\<true/></p><p>\</dict></p> |
| -------------------------------------------------------------------------------------------------------------------------------- |

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

<figure><img src="/files/RWATvvTEteCnk1io04pj" alt=""><figcaption><p><strong>Example 2</strong></p></figcaption></figure>

GADApplicationIdentifier / AppID value found on AdMob dashboard. First sign in to your AdMob account at [click here](https://apps.admob.com/). Click on Apps on the left panel in the AdMob account and click view all apps. Refer to the following example: 3.

<figure><img src="/files/vkx6RCTLrinpMs5z0dtN" alt=""><figcaption><p><strong>Example 3</strong></p></figcaption></figure>

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

<figure><img src="/files/z79EAmxLhLwpKSFjoXRC" alt=""><figcaption><p><strong>Example 4</strong></p></figcaption></figure>

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

• Create Account and log-in at [http://www.pokkt.com](http://www.pokkt.com/)

• Add your application and get its application Id and Security key.&#x20;

<figure><img src="/files/MDKjcLHZwcHr75T72SPl" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/X1jBSkErqAHBe2g8GdIX" alt=""><figcaption></figcaption></figure>

• 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.

![](/files/1k7a3TR8tvSV7Zmh6Z25)

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.

| <img src="/files/5ZKyQCEIEdUf36RGRgp9" alt="" data-size="original"> |
| ------------------------------------------------------------------- |

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:

| <p>For Rewarded Video: <strong>PokktCustomRewardedVideo</strong></p><p>For Interstitial: <strong>PokktCustomInterstitial</strong></p><p>For Banner: <strong>PokktCustomBanner</strong></p> |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |

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

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

<figure><img src="/files/JeyGJgz6RtFQHxlxNmIq" alt=""><figcaption></figcaption></figure>

Step &#x34;**: 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


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://wiki.pokkt.com/pokkt-sdk/pokkt-admob-adapter-integration-v8.2.0-ios.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
