Hey guys need some help on RevMob…i am getting null exception !! pls help…i just want to show full screen ads…thats all…
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class GameObject : MonoBehaviour,IRevMobListener {
private static readonly Dictionary<string, string> appIds = new Dictionary<string, string>() {
{ “Android”, " my android app id here"},
{ “IOS”, “DONTHAVEANIOSAPPYET” }
};
private RevMob revmob;
void Awake() {
revmob = RevMob.Start(appIds);
revmob.ShowFullscreen();
}
void Start() {
}
#region IRevMobListener implementation
public void AdDidReceive (string revMobAdType)
{
Debug.Log(“Ad did receive.”);
}
public void AdDidFail (string revMobAdType)
{
Debug.Log(“Ad did fail.”);
}
public void AdDisplayed (string revMobAdType)
{
Debug.Log(“Ad displayed.”);
}
public void UserClickedInTheAd (string revMobAdType)
{
}
public void UserClosedTheAd (string revMobAdType)
{
}
public void InstallDidReceive (string revMobAdType)
{
// Do not implement.
}
public void InstallDidFail (string revMobAdType)
{
// Do not implement.
}
#endregion
}