Erel B4X founder Staff member Licensed User Longtime User Aug 16, 2015 #1 @Hypnos has asked about adding the medium rectangle ad size. For some reason I wasn't able to create a new post in that thread. So the answer is here: Add this code: B4X: #if objc #import <GoogleMobileAds/GoogleMobileAds.h> - (NSObject*)SIZE_MEDIUM_RECTANGLE { return [NSValue valueWithBytes:&kGADAdSizeMediumRectangle objCType:@encode(GADAdSize)]; } #end if ... Dim no As NativeObject = Me ad.Initialize("ad", "ca-app-pub-126333333340/3333333317", Page1, no.RunMethod("SIZE_MEDIUM_RECTANGLE", Null))
@Hypnos has asked about adding the medium rectangle ad size. For some reason I wasn't able to create a new post in that thread. So the answer is here: Add this code: B4X: #if objc #import <GoogleMobileAds/GoogleMobileAds.h> - (NSObject*)SIZE_MEDIUM_RECTANGLE { return [NSValue valueWithBytes:&kGADAdSizeMediumRectangle objCType:@encode(GADAdSize)]; } #end if ... Dim no As NativeObject = Me ad.Initialize("ad", "ca-app-pub-126333333340/3333333317", Page1, no.RunMethod("SIZE_MEDIUM_RECTANGLE", Null))
Hypnos Active Member Licensed User Longtime User Aug 16, 2015 #2 Thanks Erel, will try it later! (Tested and works!) Last edited: Aug 23, 2015 Upvote 0