I tried to implement admob into my app in the build.settings file but when I try to my app(I know I cannot see the ads in the simulator) it gives me an error that says : the following plugin could not be downloaded com.coronalabs/ CoronaProvider.ads.admob
If you are sure you are requiring the correct plugin name , then please contact support .
Any help on what to do ?
build.settings
-- -- For more information on build.settings see the Corona SDK Build Guide at: -- http://docs.coronalabs.com/guide/distribution/buildSettings/index.html -- settings = { orientation = { -- Supported values for orientation: -- portrait, portraitUpsideDown, landscapeLeft, landscapeRight default = "landscapeRight", supported = { "landscapeRight", } }, excludeFiles = { -- Include only the necessary icon files on each platform iphone = { "Icon-\*dpi.png", }, android = { "Icon.png", "Icon-Small-\*.png", "Icon\*@2x.png", }, }, -- -- iOS Section -- iphone = { plist = { UIStatusBarHidden = false, UIPrerenderedIcon = true, -- set to false for "shine" overlay --UIApplicationExitsOnSuspend = true, -- uncomment to quit app on suspend CFBundleIconFiles = { "Icon.png", "Icon@2x.png", "Icon-60.png", "Icon-60@2x.png", "Icon-60@3x.png", "Icon-72.png", "Icon-72@2x.png", "Icon-76.png", "Icon-76@2x.png", "Icon-Small.png", "Icon-Small@2x.png", "Icon-Small@3x.png", "Icon-Small-40.png", "Icon-Small-40@2x.png", "Icon-Small-50.png", "Icon-Small-50@2x.png", }, --[[-- iOS app URL schemes: CFBundleURLTypes = { { CFBundleURLSchemes = { "fbXXXXXXXXX", -- replace XXXXXXXXX with your Facebook appId } } } --]] } }, -- -- Android Section -- android = { usesPermissions = { "android.permission.INTERNET", }, }, plugins = { ["CoronaProvider.ads.admob"] = { -- required publisherId = "com.coronalabs", }, }, }
main.lua
local storyboard = require "storyboard" storyboard.gotoScene("start") -- The name of the ad provider. local provider = "admob" -- Your application ID local appID = "ca-app-pub-8392055366133178/6136963647" -- Load Corona 'ads' library local ads = require "ads"
