Quantcast
Channel: Questions in topic: "ads"
Viewing all articles
Browse latest Browse all 1416

iAds fallback to admob

$
0
0
Using the doc as a start : http://docs.unity3d.com/ScriptReference/ADBannerView.html private ADBannerView banner = null; void Start() { banner = new ADBannerView(ADBannerView.Type.Banner, ADBannerView.Layout.Top); ADBannerView.onBannerWasClicked += OnBannerClicked; ADBannerView.onBannerWasLoaded += OnBannerLoaded; } void OnBannerClicked() { Debug.Log("Clicked!\n"); } void OnBannerLoaded() { Debug.Log("Loaded!\n"); banner.visible = true; } i can't find a way to know if iAds is falling to show a banner, so i could add my code to show AdMob instead. My main concern is the list of countries supported by iAds : Australia, Canada, France, Germany, Hong Kong, Ireland, Italy, Japan, Mexico, New Zealand, Spain, Taiwan, the United Kingdom and the United States. Everywhere else (and when iAds fail for whatever reason) i should show Admob. Do someone know how to find out when iAds is failing to load a banner ? Tanks!

Viewing all articles
Browse latest Browse all 1416

Trending Articles