admob not displaying in Android device . It is working in ios device
My code is:
build.settings:
plugins =
{
– key is the name passed to Lua’s ‘require()’
[“CoronaProvider.ads.admob”] =
{
– required
publisherId = “com.coronalabs”,
},
}
local ads = require(“ads”)
—Initialization
if adname == "iads"then
ads.init( “iads”,iadsAppId , adListener )
elseif adname == “admob” then
ads.init( “admob”, admobAppId , adListener )
end
–Showing
if adname == “iads” then
ads:setCurrentProvider(“iads”)
local adY = display.contentHeight
ads.show( “banner”, { x=0, y=adY } )
elseif adname == “admob” then
ads:setCurrentProvider(“admob”)
local adY = display.contentHeight
ads.show( “banner”, { x=0, y=adY } )
end
but ads not showing what is the problem?..