Adverts on Android
Posted: Tue May 28, 2013 4:41 pm
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.
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.