Android Question Amazon Mobile Ads with AmznAd2 Lib

trepdas

Member
Licensed User
Hello good people,
I need an updated help on monetizing amazon mobile ads into my apps.

I have tried and searched libs and tutorials and I didn't find anything up to date that worked...

I have extracted the latest amazon ads.jar in the additional lib folder.
tried to use the updated ad wrapper posted here: (with no success)
https://www.b4x.com/android/forum/threads/amazon-ad-wrapper.38135/page-2#post-415983

here are the errors when compiling with the above example

B4X:
** Activity (main) Create, isFirst = true **
pnlAd:
  l=80
  t=711
  w=320
  h=50
java.lang.NoSuchMethodError: com.amazon.device.ads.AdLayout.<init>
    at canalrun.b4a.amznwrapper.AMZNWrapper.Initialize(AMZNWrapper.java:58)
    at abundanceofhappiness.sig.main._activity_create(main.java:483)
    at java.lang.reflect.Method.invokeNative(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:515)
    at anywheresoftware.b4a.shell.Shell.runMethod(Shell.java:732)
    at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:351)
    at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:255)
    at java.lang.reflect.Method.invokeNative(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:515)
    at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:144)
    at abundanceofhappiness.sig.main.afterFirstLayout(main.java:104)
    at abundanceofhappiness.sig.main.access$000(main.java:17)
    at abundanceofhappiness.sig.main$WaitForLayout.run(main.java:82)
    at android.os.Handler.handleCallback(Handler.java:733)
    at android.os.Handler.dispatchMessage(Handler.java:95)
    at android.os.Looper.loop(Looper.java:136)
    at android.app.ActivityThread.main(ActivityThread.java:5017)
    at java.lang.reflect.Method.invokeNative(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:515)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)
    at dalvik.system.NativeStart.main(Native Method)
** Activity (main) Resume **
 
Last edited:

trepdas

Member
Licensed User
Thank you Erel.

will try to implement on amazon ads with the amazon-ads jar.
if any of you guys can drop an example for dummies on how would I do that...
it would be nice
:)
 
Top