Skip to content

fyber-engineering/offerwall-sample-app-unity

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DT Offer Wall - Sample Unity application (using FairBid Unity Plugin)

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 .

Table of contents

Prerequisites

  • 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

Project Setup

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

  1. Opening Unity 3D
  2. Clicking on Window -> Package Manager
  3. Choosing In Project from the drop-down that lets you select among the repositories (on the top left).
  4. Observe Packages - Fyber which you can expand and observe a FairBid 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.)

Build and Run

Android

Click File -> Build and Run.

iOS

For iOS, we recommend you Build and Run in 2 separate steps:

  1. File -> Build Settings -> Build
  2. From the location where the Xcode project was exported to run pod install --repo-update
    1. This should bring the necessary native dependencies and create a .xcworkspace file
  3. Click on the .xcworkspace file to open the Xcode project
  4. If you're building for a device, make sure you configure a valid provisionsing profile
  5. Run the app

Navigating the project code

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:

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.

Support and documentation

Please visit our documentation.

License

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

About

Sample app for OfferWall Edge on Unity

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages