TOUR
PRICING
HELP
Stencylpedia
Blocks Guide
Sample Games
Developer Center
FORUMS
CHAT
#MADEINSTENCYL
EDUCATION
SIGN IN
×
Welcome back!
Username or E-mail
Password
(
Forgot?
)
C
OMMUNITY
Home
Issue Tracker
Inbox [0]
New Posts
New Replies
Search
Stencyl Community
→
Stencyl
→
Extensions
→
AdMob
(Moderator:
Abliblablobla
)
→
Admob set to top but only ever shows on bottom
Pages:
1
Admob set to top but only ever shows on bottom
panda84
Posts: 28
June 23, 2014, 04:09:21 pm
My game is in Landscape mode. I am testing on android. Admob is set to display on top but only ever shows on the bottom. I have also tested it in a portrait game and the same thing happens. Two phones I have tested on both have the problem. Galaxy note 3 and HTC desire X. No errors appear in the logs that I know of. The game is set to "Scale to fit (Letterbox)".
I am using Stencyl 3.1 which I have recently just upgraded to.
sarafish
Posts: 12
July 02, 2014, 03:16:24 am
Hi Panda84
I also have the same issue, have my setting set to top and it only shows at the bottom. Did you ever manage to resolve the below?
I am currently trying different scaling sizes to see if this helps - will let you know if I come up with anything, but would be interested to see if you managed to resolve this in the meantime.
Thanks
Most recent game:
Fruit Splash Smoothie (Android)
panda84
Posts: 28
July 02, 2014, 05:13:12 pm
Hi Sarafish,
I solved this temporarily by editing the Awhirl.java file located at stencyl-full/plaf/haxe/extensions/ads/project/android/.
Replace the code on line 67 with "layout.setGravity(Gravity.CENTER_HORIZONTAL);". It doesn't solve the root problem but i'm sure it will eventually be fixed, for now that will force the ads to show on the top.
If you need an ad to show on the bottom at any stage then you will have to restore the original code that was there.
Hope that helps
sarafish
Posts: 12
July 03, 2014, 07:47:09 am
Thanks for coming back to me! Thats great - thanks for the info. In the end we just shifted everything up for the our Android version but think in an update will try the above.
Thanks again really helpful!
Most recent game:
Fruit Splash Smoothie (Android)
Abliblablobla
Posts: 524
July 13, 2014, 01:54:45 am
This issue appeared when using the Stencyl built in support for AdMob. It is already solved in an upcoming update to the built in AdMob support.
.: BuruBuru :.
Pages:
1