Problem with iAd Banner

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


BTW, this is the game I’m talking about: https://itunes.apple.com/us/app/cube-swipe/id915279401?ls=1&mt=8

It can take a few days for the iAd team to approve your app of showing ads, this is a general new Apple thing and not necessary an issue with your unity project or code.
Supposivley, the more downloads you get the faster it gets reviewed, as the ‘requests’ for showing iAds is what is need for the iAd team to approve that game. That combined with a lot of new iOS 8 and iPhone 6 apps being released and updates may mean the iAd review time is even more delayed than usual, took one of my games 2 weeks before showing adverts back when iOS 7 was released.

Thank for your answer, jesusluvsyooh. I’m gonna wait and see if the iAd’ll show up.

Just to update this post: After 4 day iAds start to work normally.

So, as jesusluvsyooh said, just wait! :slight_smile:

:wink: 4 days isn’t too long, still a loss of profit but not as bad as my two weeks one was >_<