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.

Import the Plugin into Unity

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

1. Navigate to Github Unity plugin releases page 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

Configure and Choose ad networks

AndroidiOS

Get the pubid string

Navigate to Bidapp Dashboard and under Profile 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 Get the pubid string of this instruction.

Last updated

Was this helpful?