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?
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
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
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?
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:
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”.