Orientation of interstitials on iOS

2,423 views
Skip to first unread message

ctimpany

unread,
May 17, 2011, 1:34:57 AM5/17/11
to Google AdMob Ads Developers
I notice that I can rotate the test interstitial into landscape, in
spite of the fact there's only a portrait layout for it. Is this
intentional?

My view controller only returns YES from
shouldAutorotateToInterfaceOrientation when portrait is specified, so
I guess it's not something governed by the app.

Cheers
Craig Timpany

Dean Browne

unread,
May 17, 2011, 1:45:55 AM5/17/11
to google-adm...@googlegroups.com
Thanks for the notice.  It is fine.

The test ad is misconfigured.  We are updating the test ads over the next month or so.

-D
--
Dean Browne
AdMob | Google
Software Engineer, Mobile Advertising

Rajkumar Parameswaran

unread,
Sep 27, 2012, 12:35:22 PM9/27/12
to google-adm...@googlegroups.com
Hey,

Can you help me understand the issue here a bit more. Are you saying that your application only supports portrait, but you don't want an interstitial that can be rotated to both interstitial and landscape?

I'm wondering if this is a bug or more of a feature request. It seems like if you go into the interstitial and rotate, then dismiss the interstitial, your application should still only be in the orientation you specified. Is this not the case?

Raj

On Thu, Sep 27, 2012 at 2:35 AM, Prasannaa Santhanam <prasa...@gmail.com> wrote:
This happens not just with test ads.
Is there a way to restrict the ad to just one orientation?


thanks
Prasannaa

--
 
 
 

Rajkumar Parameswaran

unread,
Oct 5, 2012, 10:09:37 PM10/5/12
to google-adm...@googlegroups.com
Sorry unfortunately restricting the orientation is something that isn't possible right now. I have filed a feature request for it however.

Unfortunately there isn't a way to programmatically dismiss the interstitial either.

On Thu, Sep 27, 2012 at 10:04 PM, Prasannaa Santhanam <prasa...@gmail.com> wrote:
Yes, the app is in portrait, as the app is restricted to portrait. 
I want the interstitial ad NOT to rotate on device rotation. I want the interstitial to be FIXED in portrait.

Hope that clears the doubt.

The second question
    Is it possible to dismiss the ad (Interstitial/Splash) programmatically. 
   Say, I want the ad to be closed after 5 seconds!! Is it allowed?

Thanks for the reply.
Prasannaa

--
 
 
 

Prasannaa Santhanam

unread,
Oct 14, 2012, 3:44:39 AM10/14/12
to google-adm...@googlegroups.com
Thanks for the reply.

I have one more question.
Is there an option to specify the size for Interstital/Splash Ads?

Say, I have a Splash/Interstitial ad configured with size as (1024x1024) 
I am trying with same ads from my iPad. I get the error as "No Ad to show".
Is it because of the size issue? 
Should I need to configure a 1024x768(iPad landscape) in order to get splash/interstitial delivered.


thanks
Prasannaa


--
 
 
 

Rajkumar Parameswaran

unread,
Oct 15, 2012, 12:42:20 PM10/15/12
to google-adm...@googlegroups.com
Yes, I believe that making the size of that interstitial 1024x768 should make sure it gets delivered. Let me know if that doesn't work for some reason though.

--
 
 
 

Rajkumar Parameswaran

unread,
Dec 4, 2012, 9:01:47 PM12/4/12
to google-adm...@googlegroups.com
Hmm I thought that if you're restricting it it shouldn't change the orientation for you when you leave the interstitial. In your VC, what do you have set for supportedInterfaceOrientations:, preferredInterfaceOrientationForPresentation: and shouldAutorotate:?



On Thu, Nov 29, 2012 at 1:44 AM, Shrikant Tekale <shri....@gmail.com> wrote:
Hi Raj,
I am facing the same issue. My app needs to support only Landscape orientation. However I get following error when I use Admob:
"Supported orientations has no common orientation with the application, and shouldAutorotate is returning YES".

To remove this, I have made my app support all the orientation from plist file and restricted the view controllers from rotating. However when a ad shows up, and we change the orientation and dismiss the ad, the view controller also changes the orientation. Is there any way to restrict the ads to specific orientation?

Thanks,
Shri
--
 
 
 

Rajkumar Parameswaran

unread,
Feb 8, 2013, 8:05:15 PM2/8/13
to google-adm...@googlegroups.com
So this looks like it works on iOS 6 now because with the supportedInterfaceOrientationsForWindow: method on UIApplication you can actually restrict what orientations anything that gets added to the UIWindow at any point during the lifecycle of your application will have.

Interstitials are actually added directly underneath your UIWindow when you're shown. This functionality isn't available in iOS 5 which is why you can't restrict the orientation changes in that case.


On Tue, Feb 5, 2013 at 10:19 AM, Martin So <marti...@gmail.com> wrote:
Hi Raj,

Is there is any update on the issue above?

"Yes, the app is in portrait, as the app is restricted to portrait. 
I want the interstitial ad NOT to rotate on device rotation. I want the interstitial to be FIXED in portrait.

Hope that clears the doubt.

The second question
    Is it possible to dismiss the ad (Interstitial/Splash) programmatically. 
   Say, I want the ad to be closed after 5 seconds!! Is it allowed?

Thanks for the reply.
Prasannaa
"

BTW, the issue only happening on iOS5/5.1, and it does work fine with iOS6+

Regards,
-Martin

--
 
---
You received this message because you are subscribed to the Google Groups "Google AdMob Ads Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-admob-ads...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Eric Leichtenschlag

unread,
Feb 15, 2013, 3:30:10 PM2/15/13
to google-adm...@googlegroups.com
Hey anil,

Off the top of my head, I'm not sure there is an easy way of doing this. I tried setting orientation=portrait on the AdActivity in the manifest but that didn't seem to work.


On Tue, Feb 12, 2013 at 2:28 AM, anil kumar <infoa...@gmail.com> wrote:
It is Possible to Restrict the orientation of Interstitiad in Android and can be add a view on full screen Interstitiad such as Button.
 
 
Anil Kumar

--
 
---
You received this message because you are subscribed to the Google Groups "Google AdMob Ads Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-admob-ads...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 



--

Eric Leichtenschlag | Developer Programs Engineer | eleich...@google.com | 650-776-5591

Rajkumar Parameswaran

unread,
Apr 19, 2013, 5:31:26 PM4/19/13
to google-adm...@googlegroups.com
Hey Shrikant,

Did you try the workaround suggested above for iOS 6 and above? In which case the issue should only be happening for iOS 5 and below. 

Raj


On Tue, Apr 16, 2013 at 12:31 AM, Shrikant Tekale <shri....@gmail.com> wrote:
Hi Raj,
Any idea if the future SDK releases will give more control on orientations for developers?
We are facing the same issue and can not make our app to stick to only one orientation.

Thanks,
Shri
--

Rajkumar Parameswaran

unread,
Apr 25, 2013, 4:52:39 PM4/25/13
to google-adm...@googlegroups.com
Unfortunately this is not supported right now.


On Mon, Apr 22, 2013 at 12:03 AM, Shrikant Tekale <shri....@gmail.com> wrote:
We would like to support out app on iOS 5 as well. Also, the workaround says we should restrict the orientation for window itself for a particular orientation. However, we have some screens which support landscape orientation as well.

As far as Ads are concerned, we are trying to support only potrait orienation in our app on iOS. I was successfully able to do it using the admob.opener.openOverlay(url, opt_supportedOrientations) for Custom Banner Ads.

But there is no openOverlay method available in the interstitial. How can I restrict the orientation on interstitial Ads?

References:
1) http://media.admob.com/api/v1/docs/
2) http://support.google.com/dfp_premium/bin/answer.py?hl=en&answer=1656921
To unsubscribe from this group and stop receiving emails from it, send an email to google-admob-ads-sdk+unsub...@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.
 
 

Billy King

unread,
Jul 15, 2013, 1:11:52 PM7/15/13
to google-adm...@googlegroups.com
Hi Raj

I've got the same issue.  I know iOS 4 and iOS 5 aren't supported for restricting rotation.  Is this functionality planned in the future?  No big deal if it isn't.  I just need to tell my customer.  They support back to iOS 4.3.

Thank you,
Billy King 

Rajkumar Parameswaran

unread,
Jul 19, 2013, 5:08:22 PM7/19/13
to google-adm...@googlegroups.com
We don't plan to support this in the short term


--

Jayant Upadhyay

unread,
Jul 25, 2013, 2:58:28 PM7/25/13
to google-adm...@googlegroups.com, Jean-Paul Sanday, Jayant Upadhyay
Hi Eric,

Are there any updates on this issue for Android?
I'm trying to integrate the admob sdk in my game which runs in Landscape mode. In case I switch off the auto-rotate feature of the device, all the ads show up in Portrait mode only which is not desired in my application. I'm using samsung Galaxy Nexus with 4.2.2 and AdmobSDK 6.3.1. 

PS: ads display in Landscape mode if auto-rotate is enabled in the device.


On Friday, February 15, 2013 12:30:10 PM UTC-8, Eric Leichtenschlag wrote:
Hey anil,

Off the top of my head, I'm not sure there is an easy way of doing this. I tried setting orientation=portrait on the AdActivity in the manifest but that didn't seem to work.
On Tue, Feb 12, 2013 at 2:28 AM, anil kumar <infoa...@gmail.com> wrote:
It is Possible to Restrict the orientation of Interstitiad in Android and can be add a view on full screen Interstitiad such as Button.
 
 
Anil Kumar

--
 
---
You received this message because you are subscribed to the Google Groups "Google AdMob Ads Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-admob-ads-sdk+unsub...@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.
 
 

Eric Leichtenschlag

unread,
Jul 26, 2013, 5:12:56 PM7/26/13
to google-adm...@googlegroups.com, Jean-Paul Sanday, Jayant Upadhyay
Locking interstitials still can't be done through native code. The SDK supports this at the creative level. Which interstitials are you using? If you're using DFP, for example, DFP does not currently send back which orientation is supported on the creative, so the SDK defaults to both orientations. For AdMob interstitials, most ads support both orientations. However, in either case, the ad should first be presented in your current orientation.

Thanks,
Eric

stereomatch

unread,
Aug 8, 2013, 6:31:59 AM8/8/13
to google-adm...@googlegroups.com
Hello Eric,

I think the question has already been answered i.e. "sorry Admob Interstitials have no ability to be set to orientation the developer wants it to be set".

However, I will still specify the issue - in case you want to easily forward it to someone (so they can understand what this means from the developer side).



We are also seeing the same thing mentioned above by "Jayant" ..

Our app is fixed to "landscape" orientation - i.e. user is holding it in that position when viewing the app.  Of course, our app is completely ignorant of the device auto-rotation sensor.


However the Admob Interstitial DOES remain sensitive to orientation.  When it cannot find an orientation (auto-rotate is off) it PRESUMES a "portrait" orientation.
Obviously the Admob Interstitial is not able to divine what orientation our app was in - however there is no way for our app to communicate to Admob Interstitials (when it is constructed or whatever) to prefer the "landscape" mode.  Neither is this an option which seems to be advised by Admob (Eric suggests above he has done the test and orientation=portrait in the AndroidManifest.xml for the Admob activity doesn't affect anything).



So here is the behavior (again our app always appears in "landscape" mode - so user is holding the device in landscape mode):


When device is set to Auto-rotate:

---- Admob Interstitial appear in landscape mode (having gotten landscape orientation correctly - if user rotates phone now, the ad will rotate also - breaking the non-rotating sense of our app's environment)

When device is set to NOT auto-rotate:
   
---- Admob Interstitial appear in PORTRAIT mode (having evidently found that auto-rotate is off it PRESUMES to default to "portrait" - thus completely ignoring the context the ad is supposed to appear in - i.e. the app and device is being held in landscape orientation by user)


Hope this clarifies the issue from the point of view of the developer.

The possible solutions:
-- There either needs to be sensitivity to an "orientation=landscape" setting in the AndroidManifest for Admob Interstitial activity.
-- Or perhaps a new activity should be specified which has these capabilities (if you don't want to mess with the banner ads) - BTW how come banner ads are able to respect this ?
-- Or developer can set the view orientation themselves using an API method


Thanks.

-stereomatch

stereomatch

unread,
Aug 8, 2013, 6:37:32 AM8/8/13
to google-adm...@googlegroups.com
Sorry I forgot to add - that last post was for android.

-stereomatch

stereomatch

unread,
Aug 8, 2013, 12:47:40 PM8/8/13
to google-adm...@googlegroups.com
I am noting a further peculiarity ..

With our app in landscape mode - and the phone's orientation sensor disabled - the Admob Interstitial appears in portrait mode (as discussed in previous post).

However I am now seeing the Admob Interstitial suddenly switch to a SECOND layout about 1 second after the ad appears - except it looks like how the ad should appear in landscape mode - BUT it is being shown in portrait mode.

Since a landscape shape is being fitted to a portrait window - the bottom part of the screen is blank (white).

In addition since the second layout is "wider" - the "Download" button on the right is not even visible - user cannot click on "Download".


This happens sometimes - perhaps it is related to having turned on auto-rotate and then turning it off (and maybe Admob Interstitial is saving the need to show in "landscape" mode from an earlier incarnation or something).


Something related to this is covered in this thread:

http://stackoverflow.com/questions/14811566/android-interstitialad-always-not-showing-properly

Which points to this thread ("problem fixed"):

https://groups.google.com/forum/?fromgroups=#!topic/google-admob-ads-sdk/83DP6aCnwx4

Which points to this thread ("problem fixed" as of June 6):

https://groups.google.com/forum/?fromgroups#!topic/google-admob-ads-sdk/pPyr1wJx8HU


However, I am seeing this still - I am using Admob SDK 6.4.1


-stereomatch


Girish

unread,
Aug 16, 2013, 4:50:13 AM8/16/13
to google-adm...@googlegroups.com, Jean-Paul Sanday, Jayant Upadhyay
Hi, 

I am using DFP for IOS. The interstitial ad is serving correctly based on the orientation of device. But when I rotate the device, the image/ad get misaligned and will not occupy full screen. Is this a bug in SDK or need to manage it from server side? or how can I resize the ad when user will rotate the device?
Thanks in advance.

Girish

Eric Leichtenschlag

unread,
Aug 19, 2013, 7:07:43 PM8/19/13
to google-adm...@googlegroups.com
Stereomatch,

This actually is the correct behavior according to the Android setting, even though it's not a great user experience. Since the interstitial supports both orientations, when the user turns on that setting, all such activities default in portrait. We should take a look at this though because it's not intuitive. I'll file a feature request for this, but to be honest it's not a high priority at the moment.

Thanks,
Eric

stereomatch

unread,
Aug 19, 2013, 9:11:52 PM8/19/13
to google-adm...@googlegroups.com
Thanks Eric,

Oddly I am not seeing the secondary odd behavior (where landscape layout was being shown in portrait orientation sometimes - and thus right side of layout was not visible).
So maybe it was caused by some fluke in testing/device state or what ..

But coming back to the Admob Interstitial orientation issue - I guess what is missing is ability to explicitly set a certain orientation:

android:screenOrientation="landscape"

in AndroidManifest.xml (for the Admob Interstitial activity) is being ignored - so that an explicit orientation could be specified by the developer.

-stereomatch
Reply all
Reply to author
Forward
0 new messages