# Moloco integration

> Set up Moloco as an ad network on Unity LevelPlay by creating an account, adding your app, and configuring ad units.

> **Important:**
>
> The following documentation discusses products or services (“Third-party Products”) not developed, owned, or operated by Unity.
> This information might be outdated or incomplete and is provided for your convenience.
> Your use of any Third-party Product is subject to its own terms.
> Unity makes no warranties regarding these products and isn't liable for any damages or losses arising from their use, including issues related to content, advertising, or materials from Third-party providers.

This guide will instruct you step-by-step on how to set Moloco live as an Ad Network on Unity LevelPlay.

> **Note:**
>
> To view the adapter changelog for this mediation network, refer to [Mediation Networks for Unity](/grow/levelplay/sdk/unity/mediation-networks.md.md#integrate-network-adapters).

## Prerequisites

* Ensure that you correctly integrate Rewarded ads, Interstitial ads, or Banner ads into your application. Refer to the following platform-specific guides for integration instructions:

  **Rewarded ads integration:**
  * [Unity](/grow/levelplay/sdk/unity/rewarded-ad-integration-package.md.md)
  * [Android](/grow/levelplay/sdk/android/rewarded-ads-integration.md.md)
  * [iOS](/grow/levelplay/sdk/ios/rewarded-ads-integration.md.md)
  * [Adobe Air](/grow/levelplay/sdk/adobe/rewarded-ads-integration.md.md)
  * [Flutter](/grow/levelplay/sdk/flutter/rewarded-ads-integration.md.md)
  * [React Native](/grow/levelplay/sdk/react/rewarded-ads-integration.md.md)
  **Interstitial integration:**
  * [Unity](/grow/levelplay/sdk/unity/interstitial-integration.md.md)
  * [Android](/grow/levelplay/sdk/android/interstitial-integration.md.md)
  * [iOS](/grow/levelplay/sdk/ios/interstitial-integration.md.md)
  * [Adobe Air](/grow/levelplay/sdk/adobe/interstitial-integration.md.md)
  * [Flutter](/grow/levelplay/sdk/flutter/interstitial-integration.md.md)
  * [React Native](/grow/levelplay/sdk/react/interstitial-integration.md.md)
  **Banner integration:**
  * [Unity](/grow/levelplay/sdk/unity/banner-integration.md.md)
  * [Android](/grow/levelplay/sdk/android/banner-integration.md.md)
  * [iOS](/grow/levelplay/sdk/ios/banner-integration.md.md)
  * [Adobe Air](/grow/levelplay/sdk/adobe/banner-integration.md.md)
  * [Flutter](/grow/levelplay/sdk/flutter/banner-integration.md.md)
  * [React Native](/grow/levelplay/sdk/react/banner-integration.md.md)

* Moloco Supports devices using iOS 13+.

## Step 1. Create a Moloco account

The Publisher portal is currently accessible on an invite basis only. To get access, reach out to your Moloco sales contact or submit a form [here](https://www.moloco.com/contact-us). After you receive an an invitation email, select the link(Create your password) in the email to complete creating an account.

![Moloco invitation email](/api/media?file=/grow/media/images/image1.png)

> **Note:**
>
> If you are already a customer of Moloco DSP, you will not receive the email, instead you can login to the Publisher Portal after you have been assigned.

## Step 2. Create an app in Moloco

* Login to the  MolocoPublisher Dashboard [here](https://publisher.moloco.cloud/)
* Create a new app by clicking  **New App** from the apps page
  ![New App button](/api/media?file=/grow/media/images/image6.png)
* Enter your app details as follows:
  * App info
    1. Select the OS type
    2. Select Type of Market
    3. Select “App is available in-store” if app is publicly available to download
    4. Search app name, app bundle ID, store URL or enter manually: after the app is located, App Title, App Market URL, Bundle ID, and IAB category will be populated automatically.
* Privacy setting: For each app, you will need to select the COPPA = Yes if your app targets children's audience as defined by the [**COPPA**](https://www.ftc.gov/legal-library/browse/rules/childrens-online-privacy-protection-rule-coppa) and [**CCPA**](https://oag.ca.gov/privacy/ccpa) if your app is targeted to the State of California users.
* Content Protections: You can block certain types of ad using the content protections per app. There are three types of content protections:
  * App Category blocking: based on categories defined by IAB
  * App Bundle blocking: input the app bundle ID, for apps listed on Apple App store, use the numerical value
  * Domain blocking
* Tap “Create” to create the app
  ![Create app form](/api/media?file=/grow/media/images/image9.png)
* After the App is created, you will need the Moloco App Key in order to initialize Moloco SDK from your mediation platform:

  * Navigate to the App section
  * Select the App, which is highlighted in in blue
  * On the App details page, the Moloco App Key will be shown.
  * Copy and save the App Key ID for setup on the LevelPlay platform

  ![Moloco App Key location](/api/media?file=/grow/media/images/image11.png)

## Step 3. Create an Ad Unit

Navigate to Ad Units section on the Moloco platform and then:

* Select the app from the list
* Select “New Ad Unit”
  ![New Ad Unit button](/api/media?file=/grow/media/images/image7.png)
* Input the name of the Ad Unit
* Enter a description (optional)
* Select auction type
  * In-app bidding only supported 
* Select the Inventory type 
* Input Bid Floor: Moloco only supports Bid Floor in USD
* Select **Create** to create the Ad Unit

  ![Create Ad Unit form](/api/media?file=/grow/media/images/image2.png)

## Step 4. Activate Moloco on LevelPlay

* Log into your LevelPlay account and go to **the LevelPlay side nav bar** > **Setup** > **SDK Networks**
* Select **Manage Networks**
* Select **Moloco** from the list of available ad networks

  ![Select Moloco from available networks](/api/media?file=/grow/media/images/image3.png)
* Enter in the relevant details in the **Account Settings** modal

  * Email
  * Password
  * Platform ID
  * Publisher ID

  ![Account Settings modal](/api/media?file=/grow/media/images/image5.png)
* Next, select the app on which you’d like to run Unity LevelPlay’s Mediation with Moloco bidding.
* Select Moloco from the setup list of Ad Networks and select the tool **Setup** icon.
  ![Setup icon for Moloco](/api/media?file=/grow/media/images/image10.png)
* Then insert the **Appliocation Key (step 3)** and **Ad Unit** **ID (step 4)**  under **Interstitial**, **Rewarded ads** or **Banner Settings**.
  ![Configure Application Key and Ad Unit ID](/api/media?file=/grow/media/images/image8.png)

## Step 5. Add the Moloco Adapter to Your Build

### LevelPlay Unity Network Manager (Recommended)

After you’ve completed SDK integration, you can download Moloco Adapter, using the LevelPlay Network Manager.

In your Unity Development platform, go to Ads Mediation > Network Manager.

If you already have the latest version of the adapters, the **action** button will be changed to “Updated”, and will be disabled.

### iOS

Moloco XCFramework is required to be “Embed & Sign”.

## Step 6. Moloco Additional Settings

### User-level COPPA

Unity LevelPlay let's publishers communicate Moloco User-level COPPA settings directly to the Moloco network. This feature is enabled using LevelPlay SDK 8.0.0+, Moloco Unity Adapter 4.3.0+.

Use the following syntax, to set Moloco COPPA with the parameter True:

```cs
LevelPlay.SetMetaData("Moloco_COPPA","true");
```

Use the following syntax, to set Moloco COPPA with the parameter False:

```cs
LevelPlay.SetMetaData("Moloco_COPPA","false");
```

You can now deliver Moloco within your application.
