I have a panel made in the Visual Designer that I would like to load a smart banner into, but am missing something as no ad displays (I can display them fine when adding to the Activity).
B4X:
Dim AdPanel As Panel
BannerAd.Initialize2("BannerAd", "ca-app-pub-XXXXXXX/XXXXXXX", BannerAd.SIZE_SMART_BANNER)
AdPanel.AddView(BannerAd, 0dip, 50%y - 32dip, 100%x, 32dip)
BannerAd.LoadAd
the reason you dont see the banner is very simple.
your panel "Adpanel" has the height of 25%y. and you add your adview (banner ad) at top of 25%y that means that your ad banner starts where your panel size ends. how do you want to see like that the banner?