This sample app showcases how to integrate DT Offer Wall using FairBid Unity Plugin. You can go through the complete documentation for this product at Digital Turbine -> DT Offer Wall -> Publishers -> Unity SDK -> Unity Plugin Integration documentation .
- DT Offer Wall - Sample Unity application (using FairBid Unity Plugin)
- Table of contents
- Prerequisites
- Project Setup
- Build and Run
- Navigating the project code
- Unity Editor version 2020.3.+
- Android 4.1 (API level 16)+ (when building for Android)
- iOS 9.0+ (when building for iOS). Note that Offers will only be rendered on devices running iOS 13.4 or higher
*This app is developed using Unity Editor 2020.3.48f1f1, but it's expected to work with any Editor between 2020 and 2022
This sample app integrates DT FairBid Unity Plugin through the Unity Package Manager.
To achieve that, a dependency to the DT FairBid Unity Plugin is added in the Package manifest file here, along with the new entry in scopedRegistries
, so that the dependency can be resolved.
You should be able to verify the Package is correctly integrated by
- Opening Unity 3D
- Clicking on
Window
->Package Manager
- Choosing
In Project
from the drop-down that lets you select among the repositories (on the top left). - Observe
Packages - Fyber
which you can expand and observe aFairBid
package (with the version matching the one declared in the manfiest).
You are ready to go!
The DT FairBid Unity Plugin takes care of adding the dependencies to the native SDKs automatically at build time.
(For steps on how to integrate the FairBid package by manually importing it, please refer to our documentation.)
Click File -> Build and Run
.
For iOS, we recommend you Build and Run in 2 separate steps:
File -> Build Settings
->Build
- From the location where the Xcode project was exported to run
pod install --repo-update
- This should bring the necessary native dependencies and create a
.xcworkspace
file
- This should bring the necessary native dependencies and create a
- Click on the
.xcworkspace
file to open the Xcode project - If you're building for a device, make sure you configure a valid provisionsing profile
- Run the app
In the folder Assets/Scenes/
you find the 'Sample Scene'. All the UI actions and elements are bind through the scene.
In the folder Assets/Scripts/
you find the OfferWallIntegration.cs
script. That is where you will find the sample integration code:
- How to set the User ID
- How to start the SDK
- How to show the Offer Wall
- How to request Virtual Currency
Note: This sample app uses pre-defined app id and security token. If you're using this sample to troubleshoot your integration, remember to bring your own credentials to this code.
Please visit our documentation.
This Sample app is covered by the Apache License 2.0.
The FairBid Unity Plugin and respective SDKs are covered by Digital Turbine's License Agreement