Mobile Ads with different screen resolutions

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

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
eddje16
Posts: 21
Joined: Wed Nov 21, 2012 2:41 pm

Mobile Ads with different screen resolutions

Post by eddje16 » Tue Dec 04, 2012 3:06 pm

Hi,

I want to implement mobile ads in my Android app.

I know I need something like this, but this will set the banner at the top of the app.

mobileAdRegister "YOUR-AD-KEY"

local tDetails
put "30" into tDetails["refresh"]
put 25 into tDetails["age"]
put "male" into tDetails["gender"]
mobileAdCreate "myAd1", "banner", (0,0), tDetails

The banner must be set at the button of the app, but with different screen resolutions I cannot set a hard coded value.

I think I need something like 'Screenrect' or 'resizestack' , but don't know the exact code.

Can someone help me out?

bqsbarbqGAnC5Z
Posts: 77
Joined: Thu Dec 08, 2011 12:19 pm

Re: Mobile Ads with different screen resolutions

Post by bqsbarbqGAnC5Z » Mon Dec 31, 2012 2:31 am

I've never worked with ads myself but I think you might be able to do something like a

Code: Select all

set the height of "banner" to the height of this card*.XX
set the width of "banner" to the width of this card *.xx
Not sure if this will work but I think it might be worth a try. Hope it helps!

Post Reply

Return to “Android Deployment”