---
title: AppLovin
description: >-
  AppLovin iOS guide for Custom Adapter GMA SDK.
---

> **For AI agents:** the complete documentation index is at [llms.txt](/llms.txt). Append `.md` to any page URL for its markdown version.

import DocTagApplovin from '/snippets/doc-tag-applovin.mdx'

<Callout type="info">
**App Prerequisites**

* Install either **CocoaPods** (recommended) or use **Swift Package Manager** to manage dependencies in your Xcode project.
* Ensure **Google Mobile Ads SDK** is already integrated; if not, install it before adding the TapMinds adapter.
</Callout>

## Installation

<Tabs>
  <Tab title="CocoaPods">
**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 'TapMindALAdapter'
    ```
2.  Run the following command in the terminal:

    Copy

    ```
    pod install
    ```
3. After installation, close Xcode and open the .xcworkspace file instead of .xcodeproj.
  </Tab>
  <Tab title="SPM">
##### **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-CA-Applovin-iOS.git
```

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

&#x20;Go to **Targets → Build Settings → Other Linker Flags** and add: -ObjC
  </Tab>
</Tabs>

##### Import Google Mobile Ads SDK

<Tabs>
  <Tab title="CocoaPods">
##### **Installation via CocoaPods**

Before you continue, review [Using CocoaPods](https://guides.cocoapods.org/using/using-cocoapods) for information on creating and using Podfiles.

To use [CocoaPods](https://guides.cocoapods.org/using/getting-started), follow these steps:

1.  Open your project's Podfile and add this line to your app's `target` build configuration:

    ```
    pod 'Google-Mobile-Ads-SDK'
    ```
2.  In a terminal, run:

    ```
    pod install --repo-update
    ```

##### Update your Info.plist

Update your app's `Info.plist` file to add two keys:

1. A `GADApplicationIdentifier` key with a string value of your AdMob app ID [found in the AdMob UI](https://support.google.com/admob/answer/7356431).
2. A `SKAdNetworkItems` key with `SKAdNetworkIdentifier` values for Google (`cstr6suwn9.skadnetwork`) and [select third-party buyers](https://developers.google.com/admob/ios/3p-skadnetworks) who have provided these values to Google.

**Complete snippet**

```
<key>GADApplicationIdentifier</key>
<!-- Sample AdMob app ID: ca-app-pub-3940256099942544~1458002511 -->
<string>SAMPLE_APP_ID</string>
<key>SKAdNetworkItems</key>
<array>
  <dict>
    <key>SKAdNetworkIdentifier</key>
    <string>cstr6suwn9.skadnetwork</string>
  </dict>
  <dict>
    <key>SKAdNetworkIdentifier</key>
    <string>4fzdc2evr5.skadnetwork</string>
  </dict>
  <dict>
    <key>SKAdNetworkIdentifier</key>
    <string>2fnua5tdw4.skadnetwork</string>
  </dict>
  <dict>
    <key>SKAdNetworkIdentifier</key>
    <string>ydx93a7ass.skadnetwork</string>
  </dict>
  <dict>
    <key>SKAdNetworkIdentifier</key>
    <string>p78axxw29g.skadnetwork</string>
  </dict>
  <dict>
    <key>SKAdNetworkIdentifier</key>
    <string>v72qych5uu.skadnetwork</string>
  </dict>
  <dict>
    <key>SKAdNetworkIdentifier</key>
    <string>ludvb6z3bs.skadnetwork</string>
  </dict>
  <dict>
    <key>SKAdNetworkIdentifier</key>
    <string>cp8zw746q7.skadnetwork</string>
  </dict>
  <dict>
    <key>SKAdNetworkIdentifier</key>
    <string>3sh42y64q3.skadnetwork</string>
  </dict>
  <dict>
    <key>SKAdNetworkIdentifier</key>
    <string>c6k4g5qg8m.skadnetwork</string>
  </dict>
  <dict>
    <key>SKAdNetworkIdentifier</key>
    <string>s39g8k73mm.skadnetwork</string>
  </dict>
  <dict>
    <key>SKAdNetworkIdentifier</key>
    <string>wg4vff78zm.skadnetwork</string>
  </dict>
  <dict>
    <key>SKAdNetworkIdentifier</key>
    <string>3qy4746246.skadnetwork</string>
  </dict>
  <dict>
    <key>SKAdNetworkIdentifier</key>
    <string>f38h382jlk.skadnetwork</string>
  </dict>
  <dict>
    <key>SKAdNetworkIdentifier</key>
    <string>hs6bdukanm.skadnetwork</string>
  </dict>
  <dict>
    <key>SKAdNetworkIdentifier</key>
    <string>mlmmfzh3r3.skadnetwork</string>
  </dict>
  <dict>
    <key>SKAdNetworkIdentifier</key>
    <string>v4nxqhlyqp.skadnetwork</string>
  </dict>
  <dict>
    <key>SKAdNetworkIdentifier</key>
    <string>wzmmz9fp6w.skadnetwork</string>
  </dict>
  <dict>
    <key>SKAdNetworkIdentifier</key>
    <string>su67r6k2v3.skadnetwork</string>
  </dict>
  <dict>
    <key>SKAdNetworkIdentifier</key>
    <string>yclnxrl5pm.skadnetwork</string>
  </dict>
  <dict>
    <key>SKAdNetworkIdentifier</key>
    <string>t38b2kh725.skadnetwork</string>
  </dict>
  <dict>
    <key>SKAdNetworkIdentifier</key>
    <string>7ug5zh24hu.skadnetwork</string>
  </dict>
  <dict>
    <key>SKAdNetworkIdentifier</key>
    <string>gta9lk7p23.skadnetwork</string>
  </dict>
  <dict>
    <key>SKAdNetworkIdentifier</key>
    <string>vutu7akeur.skadnetwork</string>
  </dict>
  <dict>
    <key>SKAdNetworkIdentifier</key>
    <string>y5ghdn5j9k.skadnetwork</string>
  </dict>
  <dict>
    <key>SKAdNetworkIdentifier</key>
    <string>v9wttpbfk9.skadnetwork</string>
  </dict>
  <dict>
    <key>SKAdNetworkIdentifier</key>
    <string>n38lu8286q.skadnetwork</string>
  </dict>
  <dict>
    <key>SKAdNetworkIdentifier</key>
    <string>47vhws6wlr.skadnetwork</string>
  </dict>
  <dict>
    <key>SKAdNetworkIdentifier</key>
    <string>kbd757ywx3.skadnetwork</string>
  </dict>
  <dict>
    <key>SKAdNetworkIdentifier</key>
    <string>9t245vhmpl.skadnetwork</string>
  </dict>
  <dict>
    <key>SKAdNetworkIdentifier</key>
    <string>a2p9lx4jpn.skadnetwork</string>
  </dict>
  <dict>
    <key>SKAdNetworkIdentifier</key>
    <string>22mmun2rn5.skadnetwork</string>
  </dict>
  <dict>
    <key>SKAdNetworkIdentifier</key>
    <string>44jx6755aq.skadnetwork</string>
  </dict>
  <dict>
    <key>SKAdNetworkIdentifier</key>
    <string>k674qkevps.skadnetwork</string>
  </dict>
  <dict>
    <key>SKAdNetworkIdentifier</key>
    <string>4468km3ulz.skadnetwork</string>
  </dict>
  <dict>
    <key>SKAdNetworkIdentifier</key>
    <string>2u9pt9hc89.skadnetwork</string>
  </dict>
  <dict>
    <key>SKAdNetworkIdentifier</key>
    <string>8s468mfl3y.skadnetwork</string>
  </dict>
  <dict>
    <key>SKAdNetworkIdentifier</key>
    <string>klf5c3l5u5.skadnetwork</string>
  </dict>
  <dict>
    <key>SKAdNetworkIdentifier</key>
    <string>ppxm28t8ap.skadnetwork</string>
  </dict>
  <dict>
    <key>SKAdNetworkIdentifier</key>
    <string>kbmxgpxpgc.skadnetwork</string>
  </dict>
  <dict>
    <key>SKAdNetworkIdentifier</key>
    <string>uw77j35x4d.skadnetwork</string>
  </dict>
  <dict>
    <key>SKAdNetworkIdentifier</key>
    <string>578prtvx9j.skadnetwork</string>
  </dict>
  <dict>
    <key>SKAdNetworkIdentifier</key>
    <string>4dzt52r2t5.skadnetwork</string>
  </dict>
  <dict>
    <key>SKAdNetworkIdentifier</key>
    <string>tl55sbb4fm.skadnetwork</string>
  </dict>
  <dict>
    <key>SKAdNetworkIdentifier</key>
    <string>c3frkrj4fj.skadnetwork</string>
  </dict>
  <dict>
    <key>SKAdNetworkIdentifier</key>
    <string>e5fvkxwrpn.skadnetwork</string>
  </dict>
  <dict>
    <key>SKAdNetworkIdentifier</key>
    <string>8c4e2ghe7u.skadnetwork</string>
  </dict>
  <dict>
    <key>SKAdNetworkIdentifier</key>
    <string>3rd42ekr43.skadnetwork</string>
  </dict>
  <dict>
    <key>SKAdNetworkIdentifier</key>
    <string>97r2b46745.skadnetwork</string>
  </dict>
  <dict>
    <key>SKAdNetworkIdentifier</key>
    <string>3qcr597p9d.skadnetwork</string>
  </dict>
</array>
```

Replace SAMPLE\_APP\_ID with your AdMob app ID. While testing, use the sample app ID shown in the previous example.
  </Tab>
  <Tab title="SPM">
**Installation via SPM**

**Key Point:** Mediation adapter libraries are not yet available on Swift Package Manager. If you use [mediation](https://developers.google.com/admob/ios/mediation), we recommend integrating with CocoaPods.

To [add a package dependency](https://developer.apple.com/documentation/xcode/adding-package-dependencies-to-your-app#Add-a-package-dependency) to your project, follow these steps:

1. In Xcode, install the Google Mobile Ads Swift Package by navigating to **File > Add Package Dependencies...**.
2.  In the prompt that appears, search for the Google Mobile Ads Swift Package GitHub repository:

    ```
    https://github.com/googleads/swift-package-manager-google-mobile-ads.git
    ```
3. Select the version of the Google Mobile Ads Swift Package you want to use. For new projects, we recommend using the **Up to Next Major Version**.
  </Tab>
</Tabs>

---

## Configuration

<Callout type="info">
**PREREQUISITES**

* An Ad Unit must already be in place which will be used for targeting.
</Callout>

##### **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](https://dash.applovin.com/o/mediation/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
IOS Class: TapMindMediationAdapterApplovin 
```

3. Click on **Save**.

<Callout type="info">
**MAX → Mediation → Manage → Networks → Click Add Custom Network → Select Network Type (SDK) → Enter iOS Class Name → Save**
</Callout>

**ADDING YIELD PARTNER**

1. Open [MAX > Mediation > Manage > Ad Units](https://dash.applovin.com/o/mediation/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"}
```

4. Click on “Save” and save the configuration.

<Callout type="info">
**MAX → Mediation → Manage Ad Units → Select Ad Unit → Select TapMind → Enter Placement ID → Enter eCPM → Enter Custom Parameters → Save**
</Callout>

<DocTagApplovin />

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

