- Home /
Question by
SamuelJames · Jun 27, 2014 at 01:57 PM ·
api
Anyone used RevMob? Setup Help.
import System.Collections.Generic;
private var APP_IDS = new Dictionary.<String, String>();
private var revmob : RevMob;
function Awake() {
APP_IDS["Android"] = "53ac8c56382eddda069ed27c";
APP_IDS["IOS"] = "53ac8c56382eddda069ed27c";
revmob = RevMob.Start(APP_IDS, this.gameObject.name);
}
function Start(){
FullScreenAd();
}
function BannerAd () {
var banner = revmob.CreateBanner(RevMob.Position.TOP, 0, 0, Screen.width, Screen.height/7);
banner.Show();
}
function FullScreenAd () {
var fs = revmob.CreateFullscreen();
fs.Show();
}
Hello, I am just trying to integrate RevMob into my game to display a full screen advert. currently BannerAd() works fine producing a banner at the top of the page but FullScreenAd() does nothing. When the full screen function is ran the debug log confirms that RevBob scripts are doing something but no ad has popped up.
Any help would be appreciated. Thank you.
Comment
Answer by LegendWill · Jun 27, 2014 at 02:45 PM
I had this problem before. Try attaching the script to any game object such as the camera. It seemed to work for me(I was using Unity 4.3.1).
Your answer
Follow this Question
Related Questions
Generic way to get properties on Component? 3 Answers
How do I implement Kongregate's API? 0 Answers
Is Editor API for making plug-in? 1 Answer