Bug with ads resizing to small size

117 views
Skip to first unread message

danis.z...@flatsourcing.com

unread,
Jan 22, 2014, 9:34:00 AM1/22/14
to google-adm...@googlegroups.com
Steps to reproduce:
1. Setup DFPBannerView:

 self.bannerView = [[DFPBannerView alloc] initWithAdSize:kGADAdSizeBanner];
   self.bannerView.rootViewController = self;
   self.bannerView.frame = self.bannerContainerView.bounds; // bannerContainerView - is UIView with frame {{0,kScreenHeight}, {320,50}}
   self.bannerView.delegate = self;
  [self.bannerContainerView addSubview:self.bannerView];


2. Load DFP banner with request

self.bannerView.adUnitID = adURL; // adURL = @"/1005055/%@_App_Iphone_ROS_320x50"
GADRequest *request = [GADRequest request];
[self.bannerView loadRequest:request];


3. Show ad after we got it

- (void)adViewDidReceiveAd:(GADBannerView *)view {
    self.bannerContainerView.y = self.view.height - self.bannerContainerView.height;
}


4. Tap on that banner. It should be banner that loads in full screen with small "X" close button on the right top corner.
5. Close that banner by pressing "X" button
6.Try to reload ad
self.bannerView.adUnitID = adURL; // adURL = @"/1005055/%@_App_Iphone_ROS_320x50"
GADRequest *request = [GADRequest request];
[self.bannerView loadRequest:request];

Result:
New loaded banner has small size and every new loadRequest returning this small banner.
Expected result:
Banner loading with normal size {320, 50}
Screenshot with error:

Amy Quispe (AdMob SDK Team)

unread,
Jan 27, 2014, 3:55:57 PM1/27/14
to google-adm...@googlegroups.com
Hi there,

This is a problem we've seen before. The problem is usually that the creative is missing a meta-data tag that looks like

  <meta name="viewport" content="user-scalable=no, width=device-width,initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"/>

which controls how it scales on different screens. You should try to figure out how to add this the creative.

Hope this helps!

Amy Quispe
Reply all
Reply to author
Forward
0 new messages