TapMind SDK Documentation logo

AppLovin

AppLovin react-native guide for Custom Adapter GMA SDK.

App Prerequisites

  • minSdkVersion of 24 or higher
  • compileSdkVersion of 36 or higher
  • Ensure Google Mobile Ads SDK is already integrated; if not, install it before adding the TapMinds adapter.
  • Ensure your ios/Podfile sets the minimum iOS version:
  • platform :ios, '15.0' # Minimum required by TapMind SDK

Installation

Android

Configuration Steps

Ensure your android/build.gradle (project-level) includes the required repositories:

allprojects {
    repositories {
        google()
        mavenCentral()
        maven { url 'https://jitpack.io' }  
    }
}

Open the package.json file.

Find the dependencies block and add from below for respective mediation platform.

tapmind_ads_applovin: "2.1.4"
Import Google Mobile Ads SDK
"react-native-google-mobile-ads": "~15.8.3"

Update AndroidManifest.xml

The AdMob app ID must be included in the AndroidManifest.xml. Failure to do so results in a crash on app launch.

Add the AdMob app ID, as identified in the AdMob web interface, to the app's android/app/src/main/AndroidManifest.xml file by adding a <meta-data> tag with the name com.google.android.gms.ads.APPLICATION_ID. For android:value, insert your own app ID in quotes as shown:

<manifest>
    <application>
        <!-- Sample AdMob app ID: ca-app-pub-3940256099942544~3347511713 -->
        <meta-data
            android:name="com.google.android.gms.ads.APPLICATION_ID"
            android:value="ca-app-pub-xxxxxxxxxxxxxxxx~yyyyyyyyyy"/>
    <application>
<manifest>

Use the same value when you initialize the plugin in your Dart code.


iOS

Configuration Steps

Update Pod file as per below

target 'Runner' do
 use_frameworks! :linkage => :static            
 
  flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
  target 'RunnerTests' do
    inherit! :search_paths
  end
end

Open the package.json file.

Find the dependencies block and add from below for respective mediation platform.

tapmind_ads_applovin: "2.1.4"
Import Google Mobile Ads SDK
"react-native-google-mobile-ads": "~15.8.3"

Update Info.plist

In your app's ios/Runner/Info.plist file, add a GADApplicationIdentifier key with a string value of your AdMob app ID, as identified in the AdMob web interface:

<key>GADApplicationIdentifier</key>
<string>ca-app-pub-################~##########</string>

You must pass the same value when you initialize the plugin in your Dart code.

See the iOS guide for more information about configuring Info.plist and setting up the app ID.



Configuration

Platform-specific values The steps below apply to both Android and iOS. When copying adapter class names or platform-specific parameters, use the Android or iOS tab for your build target.

PREREQUISITES

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

Please go through the below steps to integrate TapMinds as a demand partner with your APPLOVIN account. To begin with the integration, login to your APPLOVIN account and follow the below steps.

  1. In the MAX Dashboard, select MAX > Mediation > Manage > Networks.
  2. Click on Click here to add a Custom Network at the bottom of the page. The Create Custom Network page appears.
Custom Network: TapMind Market Place
Android Class: com.tapmind.tech.TapMindMediationAdapterApplovin
  1. Click on Save.

MAX → Mediation → Manage → Networks → Click Add Custom Network → Select Network Type (SDK) → Enter Class Name (Android or iOS) → Save

ADDING YIELD PARTNER

  1. Open MAX > Mediation > Manage > Ad Units in the MAX dashboard.
  2. Select the Ad Unit of type(Banner, Interstital or Rewarded) to which you want to add TapMind as a custom adapter.
  3. Select TapMind from the custom network menu to enable and enter the information for each placement. Below are the test setup details

Contact your account manager to see what values you need to set for the final list of production setup (Placement ID, Custom Parameters and CPM Price).

App ID = Leave it blank (its optional)
Placement ID = "As Per the G-sheet Provided"
eCPM: As Per the G-sheet Provided
Custom Parameters = {"placementName":"As Per the G-sheet Provided"}
  1. Click on “Save” and save the configuration.

MAX → Mediation → Manage Ad Units → Select Ad Unit → Select TapMind → Enter Placement ID → Enter eCPM → Enter Custom Parameters → Save

Response can be checked in LOGCAT by using tag: TapMindAdapter

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