#if OBJC
- (NSArray *)GetAdaptiveSize:(float)width {
GADAdSize g = GADCurrentOrientationAnchoredAdaptiveBannerAdSizeWithWidth(width);
CGSize s = g.size;
return @[[NSValue valueWithBytes: &g
objCType:@encode(GADAdSize)], @(s.width), @(s.height)];
}
- (NSObject*)customSize:(int)width :(int)height {
GADAdSize size = GADAdSizeFromCGSize(CGSizeMake(width, height));
return [NSValue valueWithBytes:&size objCType:@encode(GADAdSize)];
}
- (NSObject*)SIZE_MEDIUM_RECTANGLE {
return [NSValue valueWithBytes:&GADAdSizeMediumRectangle objCType:@encode(GADAdSize)];
}
#End If