Admob Plugin Error

Apologies for the delay. I’ll try to grab some debug information during the day or tomorrow. I doubt it should be hard to reproduce though. 

Ed, thanks! What does it do? :slight_smile:

Edit: I had a look, should probably produce the same error. I’ll try it out.

Somebody help.

I cant build my project for both ios and android. here is the ios build error log.

Android produces same kind of errors.

2015-06-16 15:29:00.331 Corona Simulator[511:12008] 

Copyright © 2009-2015  C o r o n a   L a b s   I n c .

2015-06-16 15:29:00.331 Corona Simulator[511:12008] Version: 3.0.0

2015-06-16 15:29:00.331 Corona Simulator[511:12008] Build: 2015.2646

2015-06-16 15:29:00.381 Corona Simulator[511:12008] Platform: iPhone / x86_64 / 10.10.3 / Intel Iris OpenGL Engine / 2.1 INTEL-10.6.20 / 2015.2646

2015-06-16 15:29:00.464 Corona Simulator[511:12008] Loading project from:   ~/Desktop/FallingBalls v1.1(ios)

2015-06-16 15:29:00.464 Corona Simulator[511:12008] Project sandbox folder: ~/Library/Application Support/Corona Simulator/FallingBalls v1.1(ios)-B542FAAE6CE656548342FE73691E79B5

2015-06-16 15:29:02.697 Corona Simulator[511:12008] PluginSync: failed to download plugin: http://plugins.coronasphere.com/com.coronalabs/CoronaProvider.ads.admob/manifest.json

2015-06-16 15:29:03.172 Corona Simulator[511:12008] WARNING: The ‘gameNetwork’ provider (google) is not available on the simulator

2015-06-16 15:29:03.329 Corona Simulator[511:12008] WARNING: The ‘ads’ provider (vungle) is not available on the simulator

2015-06-16 15:29:03.329 Corona Simulator[511:12008] WARNING: The ‘ads’ provider (admob) is not available on the simulator

2015-06-16 15:29:03.329 Corona Simulator[511:12008] WARNING: The ‘ads’ provider (admob) is not available on the simulator

2015-06-16 15:29:03.329 Corona Simulator[511:12008] WARNING: The ‘ads’ library is not available on this platform.

2015-06-16 15:29:09.393 Corona Simulator[511:12008] Warning: no valid private certificates found for profile “iOSTeam Provisioning Profile: *”

Public certificate: iPhone Developer: Sumit (6S7KCKD436) [FB223057C1745EE6C02C74E74DA512FDEA6B1632]

Provisioning file: ~/Library/MobileDevice/Provisioning Profiles/d73bbf65-6bf4-4cfe-b126-2bca6134459a.mobileprovision

2015-06-16 15:29:18.911 Corona Simulator[511:12008] CreateDictionary: item.value unexpectedly NULL for item.key ‘customBuildId’

2015-06-16 15:29:23.122 Corona Simulator[511:12008] ERROR: An error occurred during build. The server returned the following message:


A device build error occurred on the server. 

BuildID: 557fec717f36f 

Error: Get plugin failed. 

Publisher: com.coronalabs 

Plugin: CoronaProvider.ads.admob


2015-06-16 15:29:23.193 Corona Simulator[511:12008] iOS build failed (5)

Paste your build.settings page here

settings = {

plugins = {

[“CoronaProvider.gameNetwork.google”] =

{

     --required!

     publisherId = “com.coronalabs”,

 supportedPlatforms = { android=true }

 },

       

[“CoronaProvider.ads.vungle”] =

   {

     publisherId = “com.vungle”,

   },

   

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

{

publisherId = “com.coronalabs”,

supportedPlatforms = { android=true }

},

   – Add this to use Vungle

   [“CoronaProvider.ads.admob”] =

        {

            publisherId = “com.coronalabs”

        },

  

},

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

           --[[

           – iOS app URL schemes:

           CFBundleURLTypes =

           {

               {

                   CFBundleURLSchemes =

                   {

                       “fbXXXXXXXXXXXXXX”, – example scheme for facebook

                       “coronasdkapp”, – example second scheme

                   }

               }

           }

           --]]

}

},

android =

{

   googlePlayGamesAppId = 178297840743,  --insert your app id number for google game services

usesPermissions =

{

“android.permission.INTERNET”,

“android.permission.ACCESS_NETWORK_STATE”,

},

},

}

@all,

I’m really confused here guys.  This thread was started by one person, then another person appended their own problem and I’m unclear who is getting help anymore.  

However, if you’re trying to get admob working, then I 100% guarantee the project I posted a link to will work as long as you do these things right:

  • Use the latest daily build or the most recent public release.  If you’re still using 2014.2511, I don’t guarantee a thing.
  • Create your admob account if you have not already.
  • Create an ANDROID app id in your admob account.
  • Edit the project I supplied and put your ad app ID on line 8
    • Look for “ADMOBIDGOESHERE” and replace it with your id.  (keep the quotes)
    • Verify your admob id looks similar to this: ca-app-pub-1234560293916744/1057123456
  • Now, build the project for Android and install it on a test device.
    • YOU CANNOT TEST THIS ON THE SIMULATOR
  • Run it on your test device.

Wait… you should get an ad within about 5 seconds.

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

Sorry my fault, i should have asked him to create as a separate question…

I should have created a new thread. My issue was resolved thanks to the excellent example from Ed.

Going back to the original issue of the thread. I think it would be helpful to change the build.settings documentation at https://docs.coronalabs.com/plugin/ads-admob/index.html and the linked github repo. 

Anyway, thank you all for your help. 

Cheers,

Joakim

Where did you find the link for that page?

Rob

Also Please READ!!!     AdMob V1 (“CoronaProvider.ads.admob”) no longer exists.  Google got rid of it.  You *have to* use  AdMob V2.  It’s the only thing linked off of the plugins page or from the documentation site where plugins are listed.

Please adjust your build.settings and projects accordingly.  The plugin is now called “plugin.google.play.services”

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

You will continue to get build errors until you make this change.

Rob

I googled “corona sdk admob”. 

Thank you.  Hopefully it will redirect to the right place now.

Rob

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