Interstitials showing Portrait when they should display Landscape on AdMob / Android

526 views
Skip to first unread message

Federico Bricker

unread,
Dec 18, 2014, 10:30:07 AM12/18/14
to google-adm...@googlegroups.com
Hi, I'm having an issue on every game we have working in landscape mode.
The problem is that Interstitials sometimes displays in portrait mode when they should display in landscape mode.

This issue happens only if the user has auto-rotation disabled, but not always... Sometimes happens 10% of the times you call display interstitial, and sometimes 90 % of the times.

This is really frustrating, since it's being posted on many forums but nobody has an answer on how to fix this. I think this is something AdMob should fix, but I'm not sure if there's something I can do from my side :(

Any help?

Thanks!
Federico

Andrew Brogdon (Mobile Ads SDK Team)

unread,
Dec 18, 2014, 2:22:21 PM12/18/14
to google-adm...@googlegroups.com
I just attempted to recreate the issue you're reporting using our AdMob interstitial example (https://github.com/googleads/googleads-mobile-android-examples), but wasn't able to do so.

Are you able to reproduce the issue with the example project and the latest version of the SDK (6.5)?  If so, on what device?

-Andrew

Federico Bricker

unread,
Dec 18, 2014, 3:33:30 PM12/18/14
to google-adm...@googlegroups.com
Hi, I'm not using that example but I do have the last SDK (6.5) installed. This happens on many devices.
I can try to test this example, but do you have any documentation on how to compile them? I've downloaded gradle and tried to exec the gradlew command, but just raises an error (and the whole github repository lacks of documentation on how to compile those projects).
The error it raises is:
Error: Could not find or load main class org.gradle.wrapper.GradleWrapperMain



--

---
You received this message because you are subscribed to a topic in the Google Groups "Google Mobile Ads SDK Developers" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-admob-ads-sdk/lJgcBLhAW-Q/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-admob-ads...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Andrew Brogdon (Mobile Ads SDK Team)

unread,
Dec 18, 2014, 4:27:18 PM12/18/14
to google-adm...@googlegroups.com
As you've noticed, the examples are designed to execute with a gradle wrapper (http://www.gradle.org/docs/current/userguide/gradle_wrapper.html). Android Studio will fetch the wrapper jar for you.  If you're using the latest version of Android Studio, you can choose "Import Non-Android Studio project" from the welcome menu, give it the path to the AdMob Interstitial example directory, and you should be up and running.

-Andrew
To unsubscribe from this group and all its topics, send an email to google-admob-ads-sdk+unsub...@googlegroups.com.

Federico Bricker

unread,
Dec 18, 2014, 6:46:35 PM12/18/14
to google-adm...@googlegroups.com
Sorry, I don't have Android Studio or Eclipse.
Anyway, before downloading the environment and doing those tests: Are you sure that you've modified this example to force "Landscape mode" and you've disabled the auto-rotation mode of your phone before testing it?

Thanks!

To unsubscribe from this group and all its topics, send an email to google-admob-ads...@googlegroups.com.

Andrew Brogdon (Mobile Ads SDK Team)

unread,
Dec 18, 2014, 7:57:18 PM12/18/14
to google-adm...@googlegroups.com
You can also download the gradle jar file directly from gradle.org and place it in the gradle/wrapper/ directory, which will solve the "class not found" error.

More to the point, I made a second attempt at reproducing the problem and was able to do so.  Our test ads did not cause the issue to manifest, but when I tried again with a production ad unit, I did see what you described.

I will make a note and speak to our engineers.  Thanks for reporting the problem!

-Andrew


On Thursday, December 18, 2014 3:46:35 PM UTC-8, Federico Bricker wrote:
Sorry, I don't have Android Studio or Eclipse.
Anyway, before downloading the environment and doing those tests: Are you sure that you've modified this example to force "Landscape mode" and you've disabled the auto-rotation mode of your phone before testing it?

Thanks!
On Thu, Dec 18, 2014 at 6:27 PM, Andrew Brogdon (Mobile Ads SDK Team) <mobileadssdk-advisor+andrew@google.com> wrote:
As you've noticed, the examples are designed to execute with a gradle wrapper (http://www.gradle.org/docs/current/userguide/gradle_wrapper.html). Android Studio will fetch the wrapper jar for you.  If you're using the latest version of Android Studio, you can choose "Import Non-Android Studio project" from the welcome menu, give it the path to the AdMob Interstitial example directory, and you should be up and running.

-Andrew




On Thursday, December 18, 2014 12:33:30 PM UTC-8, Federico Bricker wrote:
Hi, I'm not using that example but I do have the last SDK (6.5) installed. This happens on many devices.
I can try to test this example, but do you have any documentation on how to compile them? I've downloaded gradle and tried to exec the gradlew command, but just raises an error (and the whole github repository lacks of documentation on how to compile those projects).
The error it raises is:
Error: Could not find or load main class org.gradle.wrapper.GradleWrapperMain


On Thu, Dec 18, 2014 at 4:22 PM, Andrew Brogdon (Mobile Ads SDK Team) <mobileadssdk-advisor+andrew@google.com> wrote:
I just attempted to recreate the issue you're reporting using our AdMob interstitial example (https://github.com/googleads/googleads-mobile-android-examples), but wasn't able to do so.

Are you able to reproduce the issue with the example project and the latest version of the SDK (6.5)?  If so, on what device?

-Andrew


On Thursday, December 18, 2014 7:30:07 AM UTC-8, Federico Bricker wrote:
Hi, I'm having an issue on every game we have working in landscape mode.
The problem is that Interstitials sometimes displays in portrait mode when they should display in landscape mode.

This issue happens only if the user has auto-rotation disabled, but not always... Sometimes happens 10% of the times you call display interstitial, and sometimes 90 % of the times.

This is really frustrating, since it's being posted on many forums but nobody has an answer on how to fix this. I think this is something AdMob should fix, but I'm not sure if there's something I can do from my side :(

Any help?

Thanks!
Federico

--

---
You received this message because you are subscribed to a topic in the Google Groups "Google Mobile Ads SDK Developers" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-admob-ads-sdk/lJgcBLhAW-Q/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-admob-ads-sdk+unsubscrib...@googlegroups.com.

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

Federico Bricker

unread,
Dec 19, 2014, 7:21:49 AM12/19/14
to google-adm...@googlegroups.com
Thanks Andrew! I hope this can get fixed soon :)

Best regards,
Federico

To unsubscribe from this group and all its topics, send an email to google-admob-ads...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages