- Home /
RevMob no ads are displaying
I try to integrate RevMob in my Android Project.
this is the official documentation.
If i write (javascript):
import System.Collections.Generic;
private var APP_IDS = new Dictionary.<String, String>();
private var revmob:RevMob;
function Awake() {
// Just replace the ID below with your appID.
APP_IDS["Android"] = "4f56aa6e3dc441000e005a20";
APP_IDS["IOS"] = "4fd619388d314b0008000213";
Debug.Log("[RevMob Sample App - JavaScript] Starting Session");
revmob = RevMob.Start(APP_IDS, "GameObject");
}
function Start(){
revmob.ShowFullscreen();
}
The logs tell me, that it works, but on my device nothing appears. of coure i´d replaced the default id with mine.
It would be great if someone who did this bevore can help me. The support was only respelling the (poor) documentation.
Cheers Helmut
Hello, I've got the same problems with Rev$$anonymous$$ob. Did you find a solution on your own already? I'm stuck on this revmob thing :( Cheers Stijn
I tried it a few days and had a lot of contacts with the support, but it won´t work. Very sad. But if it´s true, what some guys talking about revmob (no payouts etc.), it´s maybe better this way. give another ad-service a chance!
Answer by StijnVanCoillie · Mar 19, 2013 at 08:33 PM
This solved the problem to my RevMob problems. I attached the script to my control gameobject (Doesnt matter with gameobject) But I think its best on the one where you paint all your GUI stuff, because its painting over you GUI.
#pragma strict
import System.Collections.Generic;
//revmob
private var APP_IDS = new Dictionary.<String, String>();
APP_IDS["Android"] = "App id here";
APP_IDS["IOS"] = "App id here";
private var revmob:RevMob;
private var showRev : boolean = false;
function Start ()
{
#if (UNITY_IPHONE && !UNITY_EDITOR)
revmob = RevMob.Start(APP_IDS,this.gameObject.name);
#endif
Debug.Log(this.gameObject.name);
}
function Update ()
{
//this is just a technique I use to activated the RevMob fullscreen
if(PlayerPrefs.GetInt("revMob"))//
{
if(!showRev)
{
showRev = true;
print("Show Add");
#if (UNITY_IPHONE && !UNITY_EDITOR)
//this activates the actual revmob
revmob.ShowFullscreen();
#endif
}
}
else
{
showRev = false;
}
}
function UserClosedTheAd(adUnitType)
{
Debug.Log("Ad closed");
PlayerPrefs.SetInt("revMob", 0); //set the revMob back to 0
}
Sorry for my noob english. Hoop this can help you. It did for me, best of luck!
I found out that my problem was when i set up my game in revmob it threw a bad request page but still created the app. once i recreated it and didnt have the page everything was fine.
Answer by vickygroups · May 06, 2014 at 08:25 PM
don't forget to change the android manifest:
Android Add the required permission in your AndroidManifest.xml file by putting the following code inside the tag.
Add the required RevMob activity in the application node:
<activity android:name="com.revmob.ads.fullscreen.FullscreenActivity"
android:theme="@android:style/Theme.Translucent"
android:configChanges="keyboardHidden|orientation">
</activity>
Your answer
Follow this Question
Related Questions
Issue with Google Play Services and Chartboost SDK (gradle Android build) 1 Answer
How to remove Admob SDK from Unity? 2 Answers
Heyzap integration 4 Answers
Rewarded video ads Chartboost - Unity 5 1 Answer
Unity ADs SDK? 0 Answers