the error i catch is "could not create ad"
both in android phone and the ipad.
here is the code
Code: Select all
local tDetails
MobileAdRegister "my-registered-code"
on opencard
#Advertising
if the environment = "mobile" then
// See the dictionary for more metadata entries
put "10" into tDetails["refresh"] // The advert refresh interval in seconds
put 16 into tDetails["age"] // The age of the target audience
put "female" into tDetails["gender"] // The expected gender of the target audience
mobileAdCreate "myAd1","banner",(0,0),tDetails
put the result into rslt --< Check the error
if rslt is not empty then
answer error rslt
//mobileAdSetTopVisible ("myAd1", true) // Sets the visible of the ad "myAd1"
mobileAddSetVisible "myAd1",true
end if
end if