Admob issue

Hello.
The second day I have Admob issue. If there is a line in the program
 

ads.init ( "admob", "pub -......", adListener)

The app on the device falls .When that commented, all normally handles only , respectively, there is no advertising .
I am doing so :
 

pcall (ads.init, "admob", appIdAdmob, adListener)

The same issue.
I downloaded the latest version of the SDK, that did not help.
Has anyone encountered this problem ? ( 2-3 days ago everything worked fine )

Can you show us more code?

That code I use:

 

ads = require( "ads" ) appIdAdmob = "ca-app-pub-6392411087117914/9635984989" function adListener( event ) if ( event.isError ) then end end ads.init( "admob", appIdAdmob, adListener ) ads.load("interstitial") ads.show( "interstitial" )

Corona Simulator 2016.2830 (2016.2.18)

Are you getting any messages in your console log on your device?

Rob

I/Corona&nbsp; ( 1022): Platform: Google Nexus S - 4.1.1 - API 16 - 480x800 / x86 / 4 .1.1 / Android Emulator OpenGL ES Translator (Intel(R) HD Graphics Family) / Ope nGL ES 2.0 (3.1.0 - Build 8.15.10.2618) / 2016.2830 / русский |&nbsp; | ru | ru V/Corona&nbsp; ( 1022): \> Class.forName: plugin.fuse.LuaLoader V/Corona&nbsp; ( 1022): \> Class.forName: CoronaProvider.licensing.google.LuaLoader V/Corona&nbsp; ( 1022): \< Class.forName: CoronaProvider.licensing.google.LuaLoader V/Corona&nbsp; ( 1022): Loading via reflection: CoronaProvider.licensing.google.LuaLo ader V/Corona&nbsp; ( 1022): \> Class.forName: CoronaProvider.ads.admob.LuaLoader V/Corona&nbsp; ( 1022): \< Class.forName: CoronaProvider.ads.admob.LuaLoader V/Corona&nbsp; ( 1022): Loading via reflection: CoronaProvider.ads.admob.LuaLoader I/dalvikvm( 1022): Could not find method com.google.android.gms.common.Connectio nResult.getStatusString, referenced from method com.google.android.gms.common.zz e.getErrorString W/dalvikvm( 1022): VFY: unable to resolve static method 11965: Lcom/google/andro id/gms/common/ConnectionResult;.getStatusString (I)Ljava/lang/String; D/dalvikvm( 1022): VFY: replacing opcode 0x71 at 0x0000 W/dalvikvm( 1022): VFY: unable to resolve static field 2105 (common\_google\_play\_ services\_unknown\_issue) in Lcom/google/android/gms/R$string; D/dalvikvm( 1022): VFY: replacing opcode 0x60 at 0x0012 E/dalvikvm( 1022): Could not find class 'android.os.UserManager', referenced fro m method com.google.android.gms.common.zze.zzaq W/dalvikvm( 1022): VFY: unable to resolve check-cast 310 (Landroid/os/UserManage r;) in Lcom/google/android/gms/common/zze; D/dalvikvm( 1022): VFY: replacing opcode 0x1f at 0x000c E/dalvikvm( 1022): Could not find class 'android.app.AppOpsManager', referenced from method com.google.android.gms.common.zze.zzb W/dalvikvm( 1022): VFY: unable to resolve check-cast 98 (Landroid/app/AppOpsMana ger;) in Lcom/google/android/gms/common/zze; D/dalvikvm( 1022): VFY: replacing opcode 0x1f at 0x000e I/dalvikvm( 1022): Could not find method android.content.pm.PackageManager.getPa ckageInstaller, referenced from method com.google.android.gms.common.zze.zzi W/dalvikvm( 1022): VFY: unable to resolve virtual method 670: Landroid/content/p m/PackageManager;.getPackageInstaller ()Landroid/content/pm/PackageInstaller; D/dalvikvm( 1022): VFY: replacing opcode 0x6e at 0x000b E/GooglePlayServicesUtil( 1022): The Google Play services resources were not fou nd. Check your project configuration to ensure that the resources are included. D/AndroidRuntime( 1022): Shutting down VM W/dalvikvm( 1022): threadid=1: thread exiting with uncaught exception (group=0xa 6242288) E/AndroidRuntime( 1022): FATAL EXCEPTION: main E/AndroidRuntime( 1022): java.lang.IllegalStateException: The meta-data tag in y our app's AndroidManifest.xml does not have the right value.&nbsp; Expected 8487000 b ut found 4242000.&nbsp; You must have the following declaration within the \<applicati on\> element:&nbsp;&nbsp;&nbsp;&nbsp; \<meta-data android:name="com.google.android.gms.version" androi d:value="@integer/google\_play\_services\_version" /\> W/EGL\_genymotion( 468): eglSurfaceAttrib not implemented I/qtaguid ( 309): Failed write\_ctrl(s 0 10050) res=-1 errno=1 W/NetworkManagementSocketTagger( 309): setKernelCountSet(10050, 0) failed with errno -1

Today all Right :smiley:

Can you show us more code?

That code I use:

 

ads = require( "ads" ) appIdAdmob = "ca-app-pub-6392411087117914/9635984989" function adListener( event ) if ( event.isError ) then end end ads.init( "admob", appIdAdmob, adListener ) ads.load("interstitial") ads.show( "interstitial" )

Corona Simulator 2016.2830 (2016.2.18)

Are you getting any messages in your console log on your device?

Rob

I/Corona&nbsp; ( 1022): Platform: Google Nexus S - 4.1.1 - API 16 - 480x800 / x86 / 4 .1.1 / Android Emulator OpenGL ES Translator (Intel(R) HD Graphics Family) / Ope nGL ES 2.0 (3.1.0 - Build 8.15.10.2618) / 2016.2830 / русский |&nbsp; | ru | ru V/Corona&nbsp; ( 1022): \> Class.forName: plugin.fuse.LuaLoader V/Corona&nbsp; ( 1022): \> Class.forName: CoronaProvider.licensing.google.LuaLoader V/Corona&nbsp; ( 1022): \< Class.forName: CoronaProvider.licensing.google.LuaLoader V/Corona&nbsp; ( 1022): Loading via reflection: CoronaProvider.licensing.google.LuaLo ader V/Corona&nbsp; ( 1022): \> Class.forName: CoronaProvider.ads.admob.LuaLoader V/Corona&nbsp; ( 1022): \< Class.forName: CoronaProvider.ads.admob.LuaLoader V/Corona&nbsp; ( 1022): Loading via reflection: CoronaProvider.ads.admob.LuaLoader I/dalvikvm( 1022): Could not find method com.google.android.gms.common.Connectio nResult.getStatusString, referenced from method com.google.android.gms.common.zz e.getErrorString W/dalvikvm( 1022): VFY: unable to resolve static method 11965: Lcom/google/andro id/gms/common/ConnectionResult;.getStatusString (I)Ljava/lang/String; D/dalvikvm( 1022): VFY: replacing opcode 0x71 at 0x0000 W/dalvikvm( 1022): VFY: unable to resolve static field 2105 (common\_google\_play\_ services\_unknown\_issue) in Lcom/google/android/gms/R$string; D/dalvikvm( 1022): VFY: replacing opcode 0x60 at 0x0012 E/dalvikvm( 1022): Could not find class 'android.os.UserManager', referenced fro m method com.google.android.gms.common.zze.zzaq W/dalvikvm( 1022): VFY: unable to resolve check-cast 310 (Landroid/os/UserManage r;) in Lcom/google/android/gms/common/zze; D/dalvikvm( 1022): VFY: replacing opcode 0x1f at 0x000c E/dalvikvm( 1022): Could not find class 'android.app.AppOpsManager', referenced from method com.google.android.gms.common.zze.zzb W/dalvikvm( 1022): VFY: unable to resolve check-cast 98 (Landroid/app/AppOpsMana ger;) in Lcom/google/android/gms/common/zze; D/dalvikvm( 1022): VFY: replacing opcode 0x1f at 0x000e I/dalvikvm( 1022): Could not find method android.content.pm.PackageManager.getPa ckageInstaller, referenced from method com.google.android.gms.common.zze.zzi W/dalvikvm( 1022): VFY: unable to resolve virtual method 670: Landroid/content/p m/PackageManager;.getPackageInstaller ()Landroid/content/pm/PackageInstaller; D/dalvikvm( 1022): VFY: replacing opcode 0x6e at 0x000b E/GooglePlayServicesUtil( 1022): The Google Play services resources were not fou nd. Check your project configuration to ensure that the resources are included. D/AndroidRuntime( 1022): Shutting down VM W/dalvikvm( 1022): threadid=1: thread exiting with uncaught exception (group=0xa 6242288) E/AndroidRuntime( 1022): FATAL EXCEPTION: main E/AndroidRuntime( 1022): java.lang.IllegalStateException: The meta-data tag in y our app's AndroidManifest.xml does not have the right value.&nbsp; Expected 8487000 b ut found 4242000.&nbsp; You must have the following declaration within the \<applicati on\> element:&nbsp;&nbsp;&nbsp;&nbsp; \<meta-data android:name="com.google.android.gms.version" androi d:value="@integer/google\_play\_services\_version" /\> W/EGL\_genymotion( 468): eglSurfaceAttrib not implemented I/qtaguid ( 309): Failed write\_ctrl(s 0 10050) res=-1 errno=1 W/NetworkManagementSocketTagger( 309): setKernelCountSet(10050, 0) failed with errno -1

Today all Right :smiley: