Page 1 of 1

Adverts on Android

Posted: Tue May 28, 2013 4:41 pm
by Tomster
I appreciate this has been asked before, but I can't seem to get adverts displaying in my Android app.

I have registered with inneractive and have the AppId from them.

I am using the following on an on openCard handler

mobileAdRegister "QSOSolutions_SimpleCalc_Android"
local tDetails
// See the dictionary for more metadata entries
put "30" into tDetails["refresh"] // The advert refresh interval in seconds
put 25 into tDetails["age"] // The age of the target audience
put "male" into tDetails["gender"] // The expected gender of the target audience
mobileAdCreate "myAd1", "banner", (0,0), tDetails
set the width of "banner" to the width of this card
mobileAdSetTopVisible ("myAd1", true)

In the standalone application settings I have ticked Ad Support, Write External Storage and Internet

I get nothing in the emulator or on an android phone.

I read and re-read the tutorial on this and have read the forum posts here, but I can't see what I am doing wrong.

Any ideas?

Thanks.

Re: Adverts on Android

Posted: Wed May 29, 2013 7:37 am
by Simon
I see you set the width but you don't set the height?
set the height of "banner" to 50

I never used an ad so I don't really know, but height and width are generally needed.

Simon