asales Expert Licensed User Longtime User Jan 21, 2026 #1 In the documentation of iAdmob: B4A - iAdMob I get this information to SIZE_FULL_BANNER: iPad ad size (468x60). But if I use this type of banner in the iPhone it shows (300x250). Can I use this banner to show a GADAdSizeMediumRectangle instead this code?: How to use iAdMob ADAdSizeMediumRectangle with admob 3 Hello, Previously I was using: adviewsohbet.Initialize("adviewsohbet", ", Page1, no.RunMethod("SIZE_MEDIUM_RECTANGLE", Null)) with inline : #if OBJC - (NSObject*)customSize:(int)width :(int)height { GADAdSize size = GADAdSizeFromCGSize(CGSizeMake(width, height)); return [NSValue... www.b4x.com
In the documentation of iAdmob: B4A - iAdMob I get this information to SIZE_FULL_BANNER: iPad ad size (468x60). But if I use this type of banner in the iPhone it shows (300x250). Can I use this banner to show a GADAdSizeMediumRectangle instead this code?: How to use iAdMob ADAdSizeMediumRectangle with admob 3 Hello, Previously I was using: adviewsohbet.Initialize("adviewsohbet", ", Page1, no.RunMethod("SIZE_MEDIUM_RECTANGLE", Null)) with inline : #if OBJC - (NSObject*)customSize:(int)width :(int)height { GADAdSize size = GADAdSizeFromCGSize(CGSizeMake(width, height)); return [NSValue... www.b4x.com
Erel B4X founder Staff member Licensed User Longtime User Jan 21, 2026 #2 asales said: In the documentation of iAdmob: B4A - iAdMob Click to expand... The online documentation repository is obsolete. It isn't being updated. Add the OBJC code from that post to the main module, and use it like this: B4X: ad.Initialize("ad", "ca-app...", Page1, Me.As(NativeObject).RunMethod("SIZE_MEDIUM_RECTANGLE", Null)) Page1.RootPanel.AddView(ad, 0, 0, 300dip, 250dip) The sizes are listed here: https://developers.google.com/ad-manager/mobile-ads-sdk/ios/banner/fixed-size Upvote 0
asales said: In the documentation of iAdmob: B4A - iAdMob Click to expand... The online documentation repository is obsolete. It isn't being updated. Add the OBJC code from that post to the main module, and use it like this: B4X: ad.Initialize("ad", "ca-app...", Page1, Me.As(NativeObject).RunMethod("SIZE_MEDIUM_RECTANGLE", Null)) Page1.RootPanel.AddView(ad, 0, 0, 300dip, 250dip) The sizes are listed here: https://developers.google.com/ad-manager/mobile-ads-sdk/ios/banner/fixed-size