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

Google Admob banner not showing up

$
0
0
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); }`

Viewing all articles
Browse latest Browse all 1416

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>