Hi,
I’m having a strange problem with my app.
I’ve inserted this code to use the iAd in my game:
using UnityEngine;
using System.Collections;
public class iAd : MonoBehaviour {
private ADBannerView banner = null;
void Start()
{
banner = new ADBannerView(ADBannerView.Type.Banner, ADBannerView.Layout.Bottom);
ADBannerView.onBannerWasClicked += OnBannerClicked;
ADBannerView.onBannerWasLoaded += OnBannerLoaded;
}
void OnBannerClicked()
{
Debug.Log("Clicked!\n");
}
void OnBannerLoaded()
{
Debug.Log("Loaded!\n");
banner.visible = true;
}
}
I have three scenes (SplashScreen, MainMenu and Game) and I’ve added a Empty Object and added this script to it on the Game scene.
Basically, this is what I’m doing.
The weird part is that when I build my game and I run it on Xcode, I was able to see the iAds (an Apple banner talking about iAd), but now, that my game was release on Itunes, it isn’t showing.
My Ad Status is live:
Does any one has this problem?
Any one knows what can cause it?
Am I using a up-to-date code to insert iAd?
I’ve tried to insert all the info that I have, but if do you guys need anything more, just tell me.
Regards,
Mauro