- Home /
Admob Banner Ads not shown but are clickable
Occasionally the ad will appear very briefly when the screen is redrawn, but the rest of the time the ad is invisible. However, it is clickable and registering impressions. Tested on a Samsung Galaxy S5 and android-studio emulator. I am using Unity Editor 5.6 on Linux.
Here is my ad code, attached to the main camera:
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using GoogleMobileAds;
using GoogleMobileAds.Api;
//SEE https://github.com/unity-plugins/Unity-Admob
public class AdmobController : MonoBehaviour {
private BannerView banner;
// Use this for initialization
void Start () {
RequestBanner();
ShowBanner();
}
void RequestBanner(){
string bannerId = "ca-app-pub-xxxxxxxxxxxxx/xxxxxxxxxx";
banner = new BannerView(bannerId,AdSize.Banner,AdPosition.Bottom);
AdRequest adRequest = new AdRequest.Builder().Build();
banner.LoadAd(adRequest);
}
public void ShowBanner(){
banner.Show();
}
}
EDIT:
I tested the "Hello" sample app from https://github.com/googleads/googleads-mobile-unity, exact same issue. Interstitial ads show, banner ads do not show but are clickable.
Answer by arafalov · Jan 26, 2017 at 02:42 PM
Issue fixed in Version 3.2.0 of the Google Mobile Ads Unity Plugin. Code above worked fine as soon as I upgraded to this version.
Your answer
Follow this Question
Related Questions
My admob interstitial ads only shows once 0 Answers
Intersititial ads stops the game 0 Answers
Admob banner not showing up? 2 Answers
Regarding Admob Banner Ads position and game layout? 0 Answers
Admob rewarded videos not rewarding 1 Answer