Canceling iOS Rotation Event

43 views
Skip to first unread message

Steve Ehrenberg

unread,
Mar 28, 2014, 11:50:51 PM3/28/14
to google-adm...@googlegroups.com
I'm moving from Burstly to AdMob for my mediation and am wondering if there's a way to stop the orientation change event from happening automatically for AdMob. I'm looking to keep my banner ads at 320x50 in both orientations (which is what I had implemented before) but when I rotate the device right now, the AdMob SDK seems to automatically dump the current ad and request a new one. I don't have anything triggering a change in willRotate: or didRotate: or any other method during the orientation change so it seems to be something that AdMob is doing automatically.

My biggest concern with this is if a user rotates the device often (this is a web browser application), the advertisement will keep refreshing and will increase my impressions without a real need for an ad refresh at that time.

Eric Leichtenschlag

unread,
Apr 1, 2014, 10:08:27 PM4/1/14
to google-adm...@googlegroups.com
Hi Steve,

Is this happening on iOS or Android? On iOS, the default is that the OS handles rotations for you, and the banner doesn't get destroyed and recreated. On Android, the entire Activity by default is recreated, so a new banner and request will be loaded. This can be changed by handling your own orientation changes though.

Thanks,
Eric
Reply all
Reply to author
Forward
0 new messages