Mobile Ads with different screen resolutions
Posted: 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?
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?