Could you also take a look at my inMobi code?
I’m getting a blank screen for the build on device.
Also, the terminal tells me Retina.Text is deprecated but I don’t see the code anywhere in my main.lua file. Is that just a comment for the Corona SDK build?Thanks
[code]
–==================================================================================================
– Abstract: InMobi Ads Sample Project
– This project demonstrates Corona Banner Ads support (from inmobi network).
– IMPORTANT: You must get your own “app ID” from the advertising
– agency you want to display banner ads for. Further, you must build for device
– to properly test this sample, because “ads” library is not supported by the
– Corona Simulator.
– 1. Get your app ID (example, from inmobi)
– 2. Modify the code below to use your own app ID
– 3. Build and deploy on device
– The code below demonstrates the different banner ads you can use
– with the InMobi ad network.
–
– Version: 1.0 (July 7, 2011)
– Version: 1.1 (July 22, 2011) - Added Hide button and changed Next button behavior.
– Sample code is MIT licensed, see http://www.coronalabs.com/links/code/license
– Copyright © 2011 Corona Labs Inc. All Rights Reserved.
–==================================================================================================
–==================================================================================================
– INITIAL SETTINGS
– hide the status bar:
display.setStatusBar( display.HiddenStatusBar )
– Below is the ad network that will be used:
local adNetwork = “inmobi”
– Replace nil below with your app ID:
– String; e.g. surrounded by quotes (ex. “abcdefghijklmnop”)
local appID = nil
–==================================================================================================
– Make Banner Ads features available under “ads” namespace
local ads = require “ads”
– initialize ad network:
if appID then
ads.init( adNetwork, appID )
end
local bgW, bgH = 320, 480
local currentAdIndex = 1
local adsTable = {
“ad1.png”,
“ad2.png”,
}
if sysModel == “iPad” then
– change settings if on iPad. It has 3 additional adUnitTypes it can show.
bgW, bgH = 768, 1024
adsTable = {
“ad1.png”,
“ad2.png”,
“banner728x90”,
“banner468x60”,
“banner120x600”
}
end
– change settings if on iPad
if sysModel == “iPad” then
bgW, bgH = 768, 1024
end
if appID then
– Shows the banner indexed by variable “currentAdIndex”
local showIndexedBanner = function()
print("Showing Banner: " … adsTable[currentAdIndex])
local adX, adY = 0, 0
ads.show( adsTable[currentAdIndex], { x=adX, y=adY, interval=5, testMode=true } )
end
end
[/code] [import]uid: 88495 topic_id: 34715 reply_id: 137947[/import]