Automatic display of banner ads

50 views
Skip to first unread message

Aaron

unread,
Oct 28, 2021, 7:24:46 PM10/28/21
to Google Mobile Ads SDK Developers
I'm developing a game in Unity. I don't want banner ads to be displayed when the game is opened, but when the banner ads are loaded, they are displayed automatically. If I want to load the banner ads when they should be shown, I cannot show the ads at the time I want due to the delay. 

For this reason, after the banner ads are loaded, I check it and hide it automatically. I don't know if ad impressions are being obtained during this time, but is this a policy violation that I am doing? I don't want the banner ads to be shown automatically as soon as they are loaded, what other methods can I use for this problem.


My ad codes:

public void RequestBannerAd()
{
bannerView = new BannerView(bannerID, AdSize.SmartBanner, AdPosition.Top); 
bannerView.OnAdLoaded += (sender, args) => bannerView.Hide();
bannerView.LoadAd(CreateAdRequest());
}

private AdRequest CreateAdRequest()
{
return new AdRequest.Builder().Build();
}

Mobile Ads SDK Forum Advisor

unread,
Oct 29, 2021, 2:06:02 AM10/29/21
to m.haru...@gmail.com, google-adm...@googlegroups.com

Hello Aaron,

Thank you for reaching out to us.

With regard to your concern, if you want to load the ads only when you wish to, you can just call the loadAd function where you want it to show. But, you need to request it before you show the scene where you want it to load to avoid the delay. Then for the policy, as long as you are testing this as a test ads using your emulator/simulator and configure test device, you won't be flagged in invalid traffic. You can also check our policy article on this.

Regards,

Google Logo
Princess Pamela Pineda
Mobile Ads SDK Team
 


ref:_00D1U1174p._5004Q2QGCp4:ref
Reply all
Reply to author
Forward
0 new messages