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?
Mobile Ads with different screen resolutions
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
- Posts: 77
- Joined: Thu Dec 08, 2011 12:19 pm
Re: Mobile Ads with different screen resolutions
I've never worked with ads myself but I think you might be able to do something like a
Not sure if this will work but I think it might be worth a try. Hope it helps!
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