Adverts on Android

The place to discuss anything and everything about running your LiveCode on Android

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
Tomster
Posts: 1
Joined: Tue May 28, 2013 3:31 pm

Adverts on Android

Post by Tomster » 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.

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: Adverts on Android

Post by Simon » Wed May 29, 2013 7:37 am

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
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

Post Reply