The MVP Unity Developer Hub

Welcome to the MVP Unity developer hub. You'll find comprehensive guides and documentation to help you start working with MVP Unity as quickly as possible, as well as support if you get stuck. Let's jump right in!

Get Started    

Unity SDK Integration

Current SDK Version: 3.0.0

Introduction

This guide is intended for developers who are integrating the with a Unity app. After you have integrated the SDK, you must choose the relevant ad format and follow the steps for implementing that format.

Prerequisites

  • Android 4.1 (API level 16)+ (when building for Android)
  • iOS 9.0+ (when building for iOS)
  • Unity 2017 LTS or later

Important

  • The FairBid Unity SDK can only build iOS projects from a Mac - you cannot build your Xcode project on Windows.
  • All Fyber SDKs and supported mediated networks work in conjunction with Android's 64-bit architecture.

Step 1: Integration

  1. Download the
  2. Unzip the downloaded files
  3. Add the FairBid.unitypackage to your open Unity project.
    You can do this by either double-clicking the file, or following the steps outlined in the below screenshot:

Step 2: Adding 3rd Party SDKs

In addition to integrating the , publishers who are using , must integrate the SDKs of the selected 3rd-party networks into their app.

Steps Required

  1. Set up your app in the network's dashboard and in the . A step-by-step guide can be found here.

  2. Download the SDK of the relevant network. Supported networks and their SDKs can be found here.

For Android Integrations

You must add additional manifest modifications for each third party network. These entries are found by selecting your third party adapters here.

Automatic Detection and Initialization

The automatically detects and initializes SDKs from 3rd-party networks

Targeting Android P

When targeting Android P and using video ads, you must add an exception rule to 'localhost' found in your apps Network Security Configuration.

  1. Make the Network Security Configuration xml with the code below:
<?xml version="1.0" encoding="utf-8"?>
<network-security-config>
   <base-config cleartextTrafficPermitted="true">
       <trust-anchors>
           <certificates src="system" />
       </trust-anchors>
   </base-config>
   <domain-config cleartextTrafficPermitted="true">
       <domain includeSubdomains="true">127.0.0.1</domain>
   </domain-config>
</network-security-config>
  1. Modify your manifest of your app to point to this file.

The following code is an example of how to create this entry:

<?xml version="1.0" encoding="utf-8"?>
<manifest ... >
    <application android:networkSecurityConfig="@xml/network_security_config"
                    ... >
        ...
    </application>
</manifest>

More information can be found here.

Updated about 13 hours ago

Unity SDK Integration


Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.