- Home /
Google Admob banner not showing up
I am trying to implement banner ads into my unity game using Google AdMob. I have searched lots of solutions but no one makes a banner show up during the gameplay. Can someone help me please? I will leave the code bellow: [SerializeField] private string apId = ""; [SerializeField] private string bannerId = ""; BannerView banner; // Use this for initialization void Start () { MobileAds.Initialize(apId); ShowBanner(); } public void ShowBanner() { banner = new BannerView(bannerId, AdSize.Banner, AdPosition.Top); AdRequest request = new AdRequest.Builder().Build(); banner.LoadAd(request); }
Answer by xainulabdeen · Nov 20, 2018 at 05:21 AM
hello ! before putting actual ads ids try to test on google test add ids .
I already created an account, and also got the app Id and the banner id.
Oh sorry now i read what you said again, where can i get those test ids from?