Strange things are happening. I made a test app. I just removed my app-unit -id from the file. I took a screenshot.
I dont understand why im seeing this number.
Here are my files.
build.settings
-- Supported values for orientation: -- portrait, portraitUpsideDown, landscapeLeft, landscapeRight settings = { orientation = { default = "portrait", supported = { "portrait", } }, iphone = { plist = { UIStatusBarHidden = false, UIPrerenderedIcon = true, -- set to false for "shine" overlay --UIApplicationExitsOnSuspend = true, -- uncomment to quit app on suspend } }, -- Android permissions androidPermissions = { "android.permission.INTERNET", "android.permission.ACCESS\_NETWORK\_STATE", }, plugins = { ["plugin.google.play.services"] = { publisherId = "com.coronalabs" }, }, }
main.lua
local ads = require( "ads" ) local widget = require("widget"); a = display.newText("TESTING", 100, 100, "Myriad Pro Light", 25) a:setFillColor(255,255,255) a.anchorX = 1 a.anchorY = 0.5 local function adMobListener( event ) a.text = "height not working listener working" a.text = "Height-"..ads.height() if ( event.isError ) then a.text = "Error" else a.text = "Success".."ad height"..ads.height() end return true end ads.init( "admob", "ca-app-pub-#", adMobListener ) ads:setCurrentProvider( "admob" ) ads.show( "banner", { x=0, y=0 } )