Page 1 of 1

Ads showing on cellphone but not on Tablet

Posted: Sat Mar 02, 2013 8:52 am
by abanowBUSTfGf
If I use this code on my cellphone it works but does not work on my Android tablet:

====================================================================
if the environment = "mobile" then
mobileAdRegister "Teachingthechild"
local tDetails
put "30" into tDetails["refresh"]
put 25 into tDetails["age"]
put "female" into tDetails["gender"]
mobileAdCreate "myAd2", "banner", (0,0), tDetails
set the height of "banner" to the height of this card
set the width of "banner" to width of this card
end if
========================================================================

The tablet is set to USB debugging.
I've also tried installing the app on the tablet and unchecking the USB debugging but
it still does not work. Any ideas?

Re: Ads showing on cellphone but not on Tablet

Posted: Mon Mar 04, 2013 8:34 am
by sincipient820
have you tried removing the code...

Code: Select all

if the environment = "mobile" then
...the rest of the code looks good so it's possible this is the problem

Re: Ads showing on cellphone but not on Tablet

Posted: Mon Mar 04, 2013 9:42 am
by Simon
Hi sincipient820,
From the info you received from rev support you added:
mobileAdSetTopVisible ("myAd1", true)
Which seems to have solved it for you.
It's not in the OP code.
Check out the post:
http://forums.runrev.com/phpBB2/viewtop ... 183#p70183

Simon