I'm using LiveCode Version 6.1.3 on Android Version 4.1.2 and have been able to get Inneractive Ads to be displayed on a card based on the following code.
Code: Select all
function initializeAd
   local tDetails
   if environment() is not "mobile" then exit initializeAd
   
   -- Initialize the Ad Details
   put "60" into tDetails["refresh"] // The advert refresh interval in seconds
   put 52 into tDetails["age"] // The age of the target audience
   put "male" into tDetails["gender"] // The expected gender of the target audience 
   put "599" into tDetails["distribution id"]
   
   mobileAdCreate "SHNAd1", "banner", (0,200), tDetails
   if the result is not Empty then
      answer error "Ad Create Error: " & the result
   end if   
   mobileAdSetTopVisible ("SHNAd1", true)
   
end initializeAd
It does the same thing if you set the ad to "Text" format. Only "Full Screen" does just that with an icon to close the ad.
I've gone through the forum, the livecode lesson. http://lessons.runrev.com/s/lessons/m/4 ... n-livecode
as well as the dictionary and there is no information on how you can adjust the ad dimensions.
I found one post that use the ad type to adjust the size, but that doesn't do anything as it is not the name of an object on the card
Code: Select all
   set the height of "Banner" to 400
   set the width of "Banner" to width of this card
Thanks in advance for the help.