- Home /
Question by
AndreasX12 · Nov 08, 2014 at 03:12 PM ·
adsnotshowingrevmob
RevMob iOS ads not showing
Hi. I integrated the RevMob Unity plugin. Everything works great on Android.
This is what i have done:
Followed the steps here: http://sdk.revmobmobileadnetwork.com/unity.html
Created an iOS app from the RevMob dashboard
Added StoreKit and AdSupport in Xcode
Builded the app to my iPad
This is my Banner code attached to my 'Main Camera' GameObject:
using UnityEngine;
using System;
using System.Collections;
using System.Collections.Generic;
public class Banner : MonoBehaviour {
RevMobBanner banner;
private static readonly Dictionary<String, String> REVMOB_APP_IDS = new Dictionary<String, String>() {
{ "Android", "54403a75c578b8d206df9a1e"},
{ "IOS", "545df9e20b8e19d3794a57d3" }
};
private RevMob revmob;
void Awake() {
revmob = RevMob.Start(REVMOB_APP_IDS, "Main Camera");
}
// Use this for initialization
void Start () {
#if UNITY_ANDROID
banner = revmob.CreateBanner(RevMob.Position.BOTTOM, 0, 0, Screen.width, Screen.height / 10);
banner.Show();
#elif UNITY_IPHONE
banner = revmob.CreateBanner(0, 0, Screen.width, Screen.height / 10, null, null);
banner.Show();
#endif
}
// Update is called once per frame
void Update () {
}
}
Best Regards.
Comment
man Rev$$anonymous$$ob drived me crazy and it did not show add so i start using unity ads its a video ads and its just work with me .
Best Answer
Answer by AndreasX12 · Nov 09, 2014 at 09:59 AM
Okay. I have sent an e-mail to RevMob. It seems wierd that it doesn't work.