Admob BannerView rotation in Unity

548 views
Skip to first unread message

Karam Bowidany

unread,
Apr 6, 2019, 10:21:52 AM4/6/19
to google-adm...@googlegroups.com
Hello Unity AdMob Developers:

I'm making a jigsaw puzzle game using Unity,
The default game orientation is only Landscape (not rotatable)

As a developer I'm asked to put a Vertical banner in the puzzle play ground scene, just like this

mobile-landscape.jpg


What is the best practice to do it?

  • I tried setting the banner position manually (x, y) and giving the banner a reversed AdSize (50, 320) instead of (320, 50),
    AdmobBannerView = new BannerView(AdmobBannerUnitID, new AdSize(50, 320), new AdPosition(x, y)); // x and y are calculated manually
    the result is fine, but is there any better idea?

  • I think it would be better if I could rotate the BannerView by 90 degrees and giving it the Bottom position (just like you rotated the mobile to portrait instead of landscape), but I don't know how to do it (if it is possible)

Note: I've to implement it in both Android & iOS

Waiting for your kind suggestions

Thanks in advanced.

mobileadssdk...@google.com

unread,
Apr 8, 2019, 4:16:51 AM4/8/19
to Karam Bowidany, Google Mobile Ads SDK Developers
Hi,

Thank you for contacting us.

Technically, your implementation is fine as you are implementing your banner ads using this guide. However, you might want to check these banner implementation policy and if that kind of implementation (as seen in to your attached image) is permissible or not. You may visit the following link for relevant information.

On 04/06/19 22:21:52 en.kar...@gmail.com wrote:
Hello Unity AdMob Developers:

I'm making a jigsaw puzzle game using Unity,
The default game orientation is only Landscape

As a developer I'm asked to put a Vertical banner in the puzzle play ground scene, just like this

mobile-landscape.jpg


What is the best practice to do it?

  • I tried setting the banner position manually (x, y) and giving the banner a reversed AdSize (50, 320) instead of (320, 50), the result is fine, but is there any better idea?
  • I think it would be better if I could rotate the BannerView by 90 degrees and giving it the Bottom position (just like you rotated the mobile to portrait instead of landscape), but I don't know how to do it (if it is possible)

Note: I've to implement it in both Android & iOS

Waiting for your kind suggestions

Thanks in advanced.

--

---
You received this message because you are subscribed to the Google Groups "Google Mobile Ads SDK Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-admob-ads-sdk+unsub...@googlegroups.com.
To post to this group, send email to google-admob-ads-sdk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-admob-ads-sdk/396a0dd8-6b06-4402-9176-6074ed35ce3b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages