このframeサイズのy軸を正しく設定されるようにするためには、下記のコードに修正する。
1. 修正前
CGRect frame;
frame = CGRectMake(0,
[UIScreen mainScreen].bounds.size.height - GAD_SIZE_320x50.height - self.tabBarController.tabBar.bounds.size.height,
[UIScreen mainScreen].bounds.size.width,
GAD_SIZE_320x50.height);
bannerView_ = [[GADBannerView alloc]initWithAdSize:GADAdSizeFullWidthPortraitWithHeight(GAD_SIZE_320x50.height)];
bannerView_.frame = frame;
2. 修正後
CGRect frame;
frame = CGRectMake(0,
[UIScreen mainScreen].bounds.size.height - GAD_SIZE_320x50.height - self.tabBarController.tabBar.bounds.size.height,
[UIScreen mainScreen].bounds.size.width,
GAD_SIZE_320x50.height);
bannerView_ = [[GADBannerView alloc]initWithAdSize:kGADAdSizeSmartBannerPortrait];
bannerView_.frame = frame;
initWithAdSize に GADAdSizeFullWidthPortraitWithHeight ではなく、スマートバナーのkGADAdSizeSmartBannerPortrait または kGADAdSizeSmartBannerLandscape を画面の向きに応じて設定する。
■参考記事;
https://developers.google.com/mobile-ads-sdk/docs/admob/ios/banner?hl=ja