Hello,
It is possible to set custom size in admob. Objective c code is as follows:
How can I implement this line of code during initialization of adview? An example adview init code is:
An example by Erel to use medium rect size using obj c is :
It is possible to set custom size in admob. Objective c code is as follows:
B4X:
GADAdSize size = GADAdSizeFromCGSize(CGSizeMake(300, 50));
How can I implement this line of code during initialization of adview? An example adview init code is:
B4X:
adviewhaber.Initialize("adview","", Page1, sizes.Get(0))
An example by Erel to use medium rect size using obj c is :
B4X:
#if objc
#import <GoogleMobileAds/GoogleMobileAds.h>
- (NSObject*)SIZE_MEDIUM_RECTANGLE {
return [NSValue valueWithBytes:&kGADAdSizeMediumRectangle objCType:@encode(GADAdSize)];
}
#end if
Last edited: