TapMind SDK Documentation logo

AdMob

AdMob iOS guide for Custom Adapter GMA SDK.

App Prerequisites

  • An Ad Unit must already be in place which will be used for targeting.

Installation

Installation via CocoaPods

To integrate TapMinds custom adapter SDK into your Xcode project using CocoaPods, follow these steps:

  1. Open your project's Podfile and add:

    Copy

    pod 'TapMindAdapter'
    
  2. Run the following command in the terminal:

    Copy

    pod install
    
  3. After installation, close Xcode and open the .xcworkspace file instead of .xcodeproj.

Installation via SPM

  1. In Xcode, install the TapMind custom adapter SDK Swift Package by navigating to File > Add Package Dependencies.
  2. In the prompt that appears, search for the below GitHub repository:
https://github.com/tapmind-tech/TapMind-Custom-Adapter-iOS.git
  1. Select the version of the TapMind SDK Swift Package you want to use. For new projects, we recommend using the Up to Next Major Version.

Important (SPM Integration)
When integrating this SDK via Swift Package Manager, make sure to add the -ObjC flag to your app target.

Go to Targets → Build Settings → Other Linker Flags and add: -ObjC


Configuration

CREATING CUSTOM EVENTS FOR WATERFALL

  1. Under the Mediation tab : Click on Create Mediation group section
  2. Select IOS and type of Ad format and Continue
  3. In the Name field : Type in as provided in the G-sheet
  4. Click on Add ad units
  5. Select the app and the Ad units that you want to use custom targeting on.

Add Custom Event → Create Mediation Group → Select IOS → Add Name → Add Ad units → Select app and Ad units

AD SOURCES (WATERFALL SECTION)

  1. Click on Water fall source
  2. Click on Setup ad Source and then at the Bottom left Click on custom event
  3. Select the App for the setup (IOS)
  4. Select ad unit and add the parameters as follows

For the Below details Please reach out TapMind Account Manger

Mapping name : As Per the G-sheet Provided 
ecpm : As Per the G-sheet Provided
Class : TapMindMediationAdapterAdmob
Parameter : { "placementName": "As Per the G-sheet Provided"}

Ad Sources → Add Custom Event → Enter Label → Set eCPM → Add Mapping → Enter Mapping Name → Enter Class Name → Add Parameter

Response can be checked in LOGCAT by using tag: TapMindAdapter

The above setup completes our TapMind x ADMOB integration. You should see an Ad if test setup is complete and working fine.

Official Google Documentation for creating a custom event : https://support.google.com/admob/answer/13407144