Bidapp Ads
  • 🎁Ab_dout
  • Integration
    • iOS
      • Getting started
      • Additional Settings
      • App Policy Settings
      • Serverless Settings
      • Interstitial Ads
      • Rewarded Ads
      • Banner Ads
      • SKAdNetwork
      • SwiftUI
    • Android
      • Getting started
      • Additional Settings
      • App Policy Settings
      • Serverless Settings
      • Interstitial Ads
      • Rewarded Ads
      • Banner Ads
      • Jetpack Compose
  • PLUGINS
    • Kotlin Multiplatform
      • Getting started
      • Android Platform Setup
      • iOS Platfrom Setup
      • App Policy Settings
      • Interstitial Ads
      • Rewarded Ads
      • Banner Ads
    • Unreal Engine
      • Getting started
      • App Policy Settings
      • Interstitial Ads
      • Rewarded Ads
      • Banner Ads
      • MREC
    • Unity
      • Getting started
      • Android
      • iOS
      • App Policy Settings
      • Interstitial Ads
      • Rewarded Ads
      • Banner Ads
Powered by GitBook
On this page
  • Import the Plugin into Unity
  • Configure and Choose ad networks
  • Get the pubid string
  • Initialize the SDK

Was this helpful?

  1. PLUGINS
  2. Unity

Getting started

This guide will walk you through the steps to integrate the bidapp SDK into your Unity project, enabling you to monetize your applications with ads effectively.

PreviousUnityNextAndroid

Last updated 3 months ago

Was this helpful?

Import the Plugin into Unity

To integrate the Bidapp Unity plugin you need to take the following step:

1. Navigate to and download the latest Bidapp.unitypackage 2. In Unity, select Assets > Import Package > Custom Package… 3. Choose the Unity Plugin file you downloaded. 4. In the Import Unity Package dialog, click Import

The plugin requires Unity 2022.x.x or later.

Configure and Choose ad networks

Get the pubid string

Navigate to Bidapp Dashboard and under page you will find your Publisher ID

Initialize the SDK

Initialize the SDK and set the SDK delegate to receive events in the Start() method of your class by the following code:

using UnityEngine;
using System;
using Bidapp;

public class DemoGUI : MonoBehaviour
{
    // Use this for initialization
    void Start()
    {
        //BidappBinding.Instance.SetLogging(true);//Uncomment if you need debug logs
        //BidappBinding.Instance.setTestMode(true);//Uncomment if you need test mode
        
        string adFormats = 
          BidappFormat.Interstitial + 
          BidappFormat.Banner + 
          BidappFormat.Rewarded;

        BidappBinding.Instance.RequestTrackingAuthorization();
        
        string pubid = "pubid from your bidapp account";
        BidappBinding.Instance.Start(pubid, adFormats);

        Debug.Log("Started with pubid = " + pubid);
    }
    ....
}

Uncomment the "//BidappBinding.Instance.SetLogging(true);" code to enable debug logs.

Uncomment the "//BidappBinding.Instance.setTestMode(true);" code to enable test mode.

Pay attention to the pubid string obtained earlier at of this instruction.

Github Unity plugin releases page
Android
iOS
Profile
Get the pubid string