Build.settings

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"

Hi @brandont264,

It looks like you’re not using the correct plugin name in build.settings. See the AdMob plugin documentation here:

https://docs.coronalabs.com/plugin/ads-admob-v2/index.html

Brent

P.S. - For the record, it looks like you consulted old/outdated resource(s) that referred to the “V1” of AdMob, which has long since been deprecated by Google. Can you point me to the resource that you found so I can ensure it’s nothing that we published or maintain?

It’s still not showing in my app

https://coronalabs.com/blog/2014/07/15/tutorial-implementing-admob-v2/

That tutorial clearly shows this (correct):

[lua]

[“plugin.google.play.services”] =

{

    publisherId = “com.coronalabs”

},

[/lua]

You’re using this (incorrect):

[lua]

[“CoronaProvider.ads.admob”] =

{

    – required

    publisherId = “com.coronalabs”,

},

[/lua]

So where did you get the incorrect and outdated information?

Thanks it shows now  :)  :slight_smile:

Where do I put my ads.hide() so it won’t show when the game is playing.

Hi @brandont264,

It looks like you’re not using the correct plugin name in build.settings. See the AdMob plugin documentation here:

https://docs.coronalabs.com/plugin/ads-admob-v2/index.html

Brent

P.S. - For the record, it looks like you consulted old/outdated resource(s) that referred to the “V1” of AdMob, which has long since been deprecated by Google. Can you point me to the resource that you found so I can ensure it’s nothing that we published or maintain?

It’s still not showing in my app

https://coronalabs.com/blog/2014/07/15/tutorial-implementing-admob-v2/

That tutorial clearly shows this (correct):

[lua]

[“plugin.google.play.services”] =

{

    publisherId = “com.coronalabs”

},

[/lua]

You’re using this (incorrect):

[lua]

[“CoronaProvider.ads.admob”] =

{

    – required

    publisherId = “com.coronalabs”,

},

[/lua]

So where did you get the incorrect and outdated information?

Thanks it shows now  :)  :slight_smile:

Where do I put my ads.hide() so it won’t show when the game is playing.