Inmobi Ads crashes on android

Hi today i was trying to integrate inmobi sdk in my androi and found out that the app crashes when we load the ad. Further I checjet the github imlpementation, it crashed too, then i debug and found that there is code bug in the plugin here it is 

putting **** to hide my id :slight_smile:

D/AndroidRuntime(24080): Shutting down VM W/System.err(24080): java.lang.NumberFormatException: Invalid long: "639dd6c\*\*\*4cb289f5\*\*\*\*6e16e87" W/System.err(24080): at java.lang.Long.invalidLong(Long.java:124) W/System.err(24080): at java.lang.Long.parse(Long.java:363) W/System.err(24080): at java.lang.Long.parseLong(Long.java:353) W/System.err(24080): at java.lang.Long.parseLong(Long.java:321) W/System.err(24080): at plugin.inMobi.LuaLoader$load$1.run(LuaLoader.java:1124) W/System.err(24080): at android.os.Handler.handleCallback(Handler.java:739) W/System.err(24080): at android.os.Handler.dispatchMessage(Handler.java:95) W/System.err(24080): at android.os.Looper.loop(Looper.java:145) W/System.err(24080): at android.app.ActivityThread.main(ActivityThread.java:5951) W/System.err(24080): at java.lang.reflect.Method.invoke(Native Method) W/System.err(24080): at java.lang.reflect.Method.invoke(Method.java:372) W/System.err(24080): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1388) W/System.err(24080): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1183)

At what point does this crash occur?

If you could provide a bit more info that would be great.

Thank you

Ok, so you’re using the wrong placement ids.

See the screenshot below for the correct place to look for placement ids.

They are never alphanumeric.

That being said, it should handle this case better, without crashing. I am working on resolving that now.

EDIT: A fix has been put in place to handle using the wrong placement id. it will now warn you rather than crash.

Thanks

image.png

At what point does this crash occur?

If you could provide a bit more info that would be great.

Thank you

Ok, so you’re using the wrong placement ids.

See the screenshot below for the correct place to look for placement ids.

They are never alphanumeric.

That being said, it should handle this case better, without crashing. I am working on resolving that now.

EDIT: A fix has been put in place to handle using the wrong placement id. it will now warn you rather than crash.

Thanks

image.png