RevMob Ads showing null exception error

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
}

Its all here pal.

http://sdk.revmob.com/unity.html

Also

http://forum.unity3d.com/threads/143875-Using-code-tags-properly

hey guys thanks for the reply!!! i had tried those stuff…i think i found the reason it was not working…

i had to attach the script to the camera to work rather than a gameobject… no idea why…but after that it was working and all their documentation is also working…i’ll do see how their ads is going and update here…

thanks…i use this from my next post…

thank you

The issue is probably you’re not reading the SDK documentation. You need to specify, in the code, which gameobject will be used for callbacks.