1. *** New version of B4J is available ***
    B4J v7.8
    Dismiss Notice

Android Question Amazon Mobile Ads with AmznAd2 Lib

Discussion in 'Android Questions' started by trepdas, Jul 18, 2019.

  1. trepdas

    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

    Code:
    ** 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: Jul 18, 2019
  2. Erel

    Erel Administrator Staff Member Licensed User

  3. trepdas

    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
    :)
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice