Admob Plugin Error

I am trying to intergrate AdMob v2 in a new project. Copy and pasted code from a live app running adMob but changed the app id obviously. But now I get this error

The followign 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.

Anyone know what to do? Is it due to me having a free account now? I thought we had access to all plugins. Appreciate the help.

Can you post your build.settings file?

-- -- 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 = "portrait", supported = { "portrait", portraitUpsideDown} }, 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             UIStatusBarHidden = true,             MinimumOSVersion = "6.0", CFBundleDisplayName = "Block 9",             CFBundleName = "Block 9, Puzzle Game", --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", }, --launch image files table             UILaunchImages = {                 {  -- iPhone 4 Portrait                     ["UILaunchImageMinimumOSVersion"] = "7.0",                     ["UILaunchImageName"] = "Default",                     ["UILaunchImageOrientation"] = "Portrait",                     ["UILaunchImageSize"] = "{320, 480}"                 },                 {  -- iPhone 5 Portrait                     ["UILaunchImageMinimumOSVersion"] = "7.0",                     ["UILaunchImageName"] = "Default-568h",                     ["UILaunchImageOrientation"] = "Portrait",                     ["UILaunchImageSize"] = "{320, 568}"                 },                 {  -- iPhone 6 Portrait                     ["UILaunchImageMinimumOSVersion"] = "8.0",                     ["UILaunchImageName"] = "Default-667h",                     ["UILaunchImageOrientation"] = "Portrait",                     ["UILaunchImageSize"] = "{375, 667}"                 },                 {  -- iPhone 6 Plus Portrait                     ["UILaunchImageMinimumOSVersion"] = "8.0",                     ["UILaunchImageName"] = "Default-736h",                     ["UILaunchImageOrientation"] = "Portrait",                     ["UILaunchImageSize"] = "{414, 736}"                 },             }, --[[-- iOS app URL schemes: CFBundleURLTypes = { { CFBundleURLSchemes = { "fbXXXXXXXXX",  -- replace XXXXXXXXX with your Facebook appId } } } --]] } }, -- enable the admob plugin plugins = { ["CoronaProvider.ads.admob"] =         {             publisherId = "com.coronalabs"         }, }, -- -- Android Section -- android = { usesPermissions = { "android.permission.INTERNET", }, }, }

Are there any more errors in your console log?  AdMob was always available to free accounts.

Rob

In the console:

PluginSync: failed to download plugin: http://plugins.coronasphere.com/com.coronalabs/CoronaProvider.ads.admob/manifest.json

Don’t think anything else so far. Thats from the corona simulator, not device or xcode.

Try it on a device.  The simulator doesn’t support AdMob, but you shouldn’t get a download error either.

Rob

I can’t even build because of the plugin error 

Build failed: A device build error occurred on the server.  BuildID: 557ba2a543f04  Error: Get plugin failed.  Publisher: com.coronalabs  Plugin: CoronaProvider.ads.admob

I couldn’t built for my devices. Only simulator build.

Build failed:

A device build error occurred on the server. 

BuildID: 557c186b37ce0 

Error: Get plugin failed. 

Publisher: com.coronalabs 

Plugin: CoronaProvider.ads.admob

Fixed problem - was using wrong plugin link:

This works:

["plugin.google.play.services"] =         {             publisherId = "com.coronalabs"         },

You can’t use “CoronaProvider.ads.admob”  this is the old V1 plugin which no longer exists.  The new one is:  “plugin.google.play.services”.  Please update your build.settings file.

Rob

It seems like the app crashes on device if built for Amazon using Admob v2.

Since the old plugin is no longer available can you please advise on how to integrate admob with Amazon apps?

after changing 

plugins =
{
[“CoronaProvider.ads.admob”] =
        {
            publisherId = “com.coronalabs”
        },
},

to

“plugin.google.play.services”] =
        {
            publisherId = “com.coronalabs”
        },

i’m getting the following errors after deploying the app to device,

https://drive.google.com/file/d/0B6wfNM78aD0xZjF6ZWxUWldfaEk/view

Hi

Did you manage to fix this because i am also getting same error message despite using the latest plugin

OK my fault :(, this was my initial code:

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

        {

            publisherId = “com.coronalabs”,

supportedPlatforms = { android = true },

        },

Then I had to remove “supportedPlatforms = { android = true },” including the coma on first line before it worked :slight_smile:

What do you mean “if built for Amazon”?  What device are you trying to test on?

Rob

@Rob

Built for Amazon - I mean when you choose to build for Amazon platform in Simulator. 

I’ve tested on a HTC One S and an ASUS Memopad 7. The app crashes on startup. It doesn’t happen if I build for Google Play using the same code or if I use a different ad network (like chartboost) on Amazon. 

Any ideas? Bug in plugin.google.play.services plugin? 

Do the devices have Google Play installed on them?

Yes.

Before I can go to engineering with this, I’m going to need to see whatever errors are appearing on your console.  I need to know what version of Corona SDK you are using and what Operating system you’re building on.

Thanks

Rob

Hey.  Just for kicks, you might try downloading this file, replacing the admob ID with yours, and then try running it on your device:

http://github.com/roaminggamer/RG_FreeStuff/raw/master/AskEd/2015/06/admob.zip

 

-Ed