---
title: Google Ad Manager
description: >-
  Google Ad Manager 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 DocTagAdmobGam from '/snippets/doc-tag-admob-gam.mdx'

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

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

## 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:&#x20;

```
https://github.com/tapmind-tech/TapMind-Custom-Adapter-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

---

## Configuration

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

**GOOGLE AD MANAGER CONFIGURATION**

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

1. Under the **Admin** header : Click on the **Companies** section
2. Click on the **New Company** button : Select **Ad Network**
3. In the Name field : Type In **TapMind**
4. In the **Ad Network** field : Select **Other Company**
5. Toggle **Mediation** to **ON**
6. Click on **Save**

<Callout type="info">
**Login GAM → Admin → Companies → New Company → Select Company Type (Ad Network) → Enter Name (TapMind) → Select Ad Network (Other Company) → Enable Mediation → Save**
</Callout>

**CREATING YIELD GROUP AND YIELD PARTNER**

<Callout type="info">
For adding **TapMind** under existing yield groups, skip the steps for creating a new yield group, navigate to your existing yield group and follow the steps for **Adding Yield Partner** as described in the next section
</Callout>

1. Under the “**Delivery**” tab : Click on “**Yield Groups**” section
2. Click on “**New Yield Group**” to create a new yield group
3. In the Name field : Type in as provided in the **G-sheet**
4. Ad Format : As Per the G-sheet Provided
5. Inventory Type : **Mobile**
6. Under Targeting : Select the Ad Units which "**TapMind**" will target
7. Scroll to the bottom

<Callout type="info">
**Delivery → Yield Groups → New Yield Group → Enter Name (from sheet) → Select Ad Format → Select Inventory Type (Mobile) → Select Ad Units (TapMind) → Scroll Down**
</Callout>

**ADDING YIELD PARTNER**

1. Click on “**Add Yield Partner**”
2. Select “**TapMind**” from the list

Add details as provided below in Yield Partner

```
Integration Type : Custom Event 
Platform : IOS
Status : Active
```

For the Below details Please reach out TapMind Account Manger

```
Default Cpm : As Per the G-sheet Provided
Label : As Per the G-sheet Provided
Class Name : TapMindMediationAdapterGAM
Parameter : { "placementName": "As Per the G-sheet Provided"}
```

3. Click on “**Save**” and save the configuration.
4. The actual number of entries, manual eCPM, etc. will be shared once the test setup is complete.

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

<Callout type="info">
**Add Yield Partner → Select TapMind → Integration Type (Custom Event) → Platform (IOS) → Set Status (Active) → Enter Default CPM (from sheet) → Enable Override CPM → Enter Label (from sheet) → Enter Class Name → Enter Parameter → Save**
</Callout>

<DocTagAdmobGam />

<Callout type="info">
Official Google Documentation for creating a Yield Group :\
https://support.google.com/admanager/answer/7390828?hl=en
</Callout>

