Help with Placing Ads

abhishek007p

Active Member
Licensed User
Longtime User
Hi,

i am trying to place Admob ads on my app, on the bottom of my apps. it appears fine on my phone with a resolution of

B4X:
'<Ads>
   Dim AdTop As Long
   AdTop = Activity.Height - 50

   AdView1.Initialize("Ad", "<ID>") 'publisher id that you received from AdMob.
   Activity.AddView(AdView1, 0dip, AdTop, 320dip, 50dip) 'previously the height was 48dip. Now it is 50dip.
   AdView1.LoadAd 'loads an ad
'</Ads>
 
Top