Unity
Current Plugin Version: 3.67.0
DT FairBid and DT Offer Wall are integrated through the same Unity Plugin: the DT FairBid Plugin.
Prerequisites
Android 4.4 (API Level 19) or later
iOS 13 or later
Unity 2021 or later
Integrating DT FairBid for Unity iOS development requires a macOS environment. Building your iOS/Xcode project is not supported on Windows.
Tooling
When integrating the FairBid SDK into your Unity app, make sure your development environment meets the following minimum compatibility requirements.
2022.3
API Level 19
2.1.0
7.6.3
11
7.4.2
2021.3
API Level 19
2.1.0
7.6.3
11
7.4.2
While FairBid may work with other Unity Editor versions, DT tests FairBid against these specific versions. Additionally, the recommended tooling (JDK, Gradle, and AGP) versions reflect the defaults included with each Unity version. These can be overridden, but DT recommends using these versions to avoid conflicts in your build process.
Integration
Digital Turbine supports two methods for integration in Unity:
Integrating through Unity's Package Manager (recommended)
Integrating Through Unity's Package Manager
This is the recommended method to integrate the DT FairBid Unity Plugin in your Unity project.
The DT FairBid Unity Plugin is provided as a package in the NPM package registry. This package is imported using Unity Package Manager.
To import the package:
Add the following entries inside your
manifest.json, which you can find under thePackagesfolder:
Add an entry under
scopedRegistries. Unity knows where to search when adding the DT FairBid Unity Plugin dependency. This entry points to the NPM package registry.
Add an entry under
dependencies, which references the DT FairBid Unity Plugin version that you intend to integrate.
Save the changes and open your Unity 3D Project. The Unity Package Manager resolves the dependencies, and now the DT FairBid Unity Plugin is integrated into the project.
To cross-check the integration of DT FairBid, navigate to the Unity 3D Window toolbar menu and click Package Manager. The Package Manager window shows DT FairBid under the DT section, and the DT FairBid Unity Plugin version.
You can also change the DT FairBid Unity Plugin version you are integrating through the Unity Package Manager.
Importing DT FairBid Unity Plugin Raw Package
Follow the instructions below to download the DT FairBid Unity Plugin package manually.
Manual Download
Removing Current Plugin
If you are updating the Plugin:
Make sure there is no trace of the previous version of the DT FairBid Unity Plugin.
Remove the
FairBidfolder.
This is a fail-safe way to ensure no legacy file is left behind:

Importing New Plugin
Download the DT FairBid Unity Plugin.
Unzip the downloaded files.
Add the
FairBid.unitypackageto your open Unity project.
Using the External Dependency Manager (EDM4U)
The External Dependency Manager for Unity (EDM4U), previously known as the Unity Jar Resolver, is an open-source tool that automatically manages native Android and iOS dependencies.
Declaring Network Dependencies
To declare network dependencies:
Create a new XML file.
Name the file with a
Dependencies.xmlsuffix, for example,FairBidMediationDependencies.xml.Add the file to the Editor folder.
Copy the required XML snippet for your selected network to the XML file. To generate the required XML snippet, see Supported Networks.
Resolving Dependencies
Dependency resolution works differently on Android and iOS; follow the instructions in the appropriate tab below.
Dependencies resolve automatically for Android.
(Optional) To force dependency resolution:
Go to Assets→External Dependency Manager→Android Resolver→Force Resolve.

EDM4U automatically resolves all the dependencies declared in a specific .xml file and adds the respective entries to your Podfile.
In iOS, resolution occurs when you export the project.
To avoid compilation errors, configure the following iOS Resolver settings:
Navigate to Assets→External Dependency Manager→iOS Resolver→Settings.
Deselect the Link frameworks statically checkbox.
If you do not deselect this option, you may encounter a compilation error about missing the FairBidSDK/FairBidSDK-Swift.h file.
Open the
.xcworkspacefile in Xcode, not the.xcodeprojfile. EDM4U creates the.xcworkspacefile when it builds the project.Locate the
Podfilein the build folder and runpod installwhen the.xcworkspacefile does not appear to generate.xcworkspace.
In addition to integrating the DT FairBid SDK, you must integrate chosen third-party networks' SDKs into their app.
Set up your app in the network's dashboard and in the DT Console. For more information, see Setting Up DT FairBid.
Download the relevant network's SDK. For more information about supported networks and their SDKs, see Supported Networks.
You must add additional configurations for each third-party network.
These entries are found by selecting your third-party networks in the table.
The DT FairBid SDK automatically detects and initializes SDKs from third-party networks.
Once you've added all third-party SDKs and set up your app in the console, you can initialize the DT FairBid SDK.
Last updated

