question

Sarvesh avatar image
Sarvesh asked

Amazon Banner Ad not showing.

I am displaying/adding banner adv in my application. but banner adv are not displaying,I am implementing banner adv using Android Studio.Here are the files and logcat.

1-(activity_main.xml)

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:Amazon="http://schemas.android.com/apk/lib/com.amazon.device.ads"
    xmlns:tools="http://schemas.android.com/tools"
    android:id="@+id/Main"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical"
    tools:context="com.bozon.shubh.pen.bozonink.MainActivity">


    <com.amazon.device.ads.AdLayout
        android:id="@+id/ad_view"
        android:layout_width="320dp"
        android:layout_height="50dp"
        Amazon:adSize="320x50" />

</LinearLayout>



2-MainActivity.java

package com.bozon.shubh.pen.bozonink;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;

import com.amazon.device.ads.*;

public class MainActivity extends AppCompatActivity {
    private AdLayout adView;
    public InterstitialAd interstitialAd;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        AdRegistration.setAppKey("6c563ab13316436bb8551162e8c22e13");

        this.adView = (AdLayout) findViewById(R.id.ad_view);
        
       AdTargetingOptions adOptions = new AdTargetingOptions();
        // Optional: Set ad targeting options here.
        this.adView.loadAd(adOptions);// Retrieves an ad on background thread
        this.adView.showAd();

    }
}

3-logcat

07-07 02:45:28.149 7593-7593/? I/art: Late-enabling -Xcheck:jni
07-07 02:45:28.170 7593-7601/? I/art: Debugger is no longer active
07-07 02:45:28.170 7593-7601/? I/art: Starting a blocking GC Instrumentation
07-07 02:45:28.200 7593-7593/? D/LenovoAppIconTheme: ExtraResources;cleanCachedIcon;clear cache..
07-07 02:45:28.561 7593-7593/? W/System: ClassLoader referenced unknown path: /data/app/com.bozon.shubh.pen.bozoninkpen-2/lib/arm
07-07 02:45:28.577 7593-7593/? I/MultiDex: VM with version 2.1.0 has multidex support
07-07 02:45:28.577 7593-7593/? I/MultiDex: Installing application
07-07 02:45:28.577 7593-7593/? I/MultiDex: VM has multidex support, MultiDex support library is disabled.
07-07 02:45:28.580 7593-7593/? I/InstantRun: starting instant run server: is main process
07-07 02:45:28.670 7593-7593/? W/art: Before Android 4.1, method android.graphics.PorterDuffColorFilter android.support.graphics.drawable.VectorDrawableCompat.updateTintFilter(android.graphics.PorterDuffColorFilter, android.content.res.ColorStateList, android.graphics.PorterDuff$Mode) would have incorrectly overridden the package-private method in android.graphics.drawable.Drawable
07-07 02:45:28.716 7593-7593/? V/BoostFramework: mAcquireFunc method = public int com.qualcomm.qti.Performance.perfLockAcquire(int,int[])
07-07 02:45:28.716 7593-7593/? V/BoostFramework: mReleaseFunc method = public int com.qualcomm.qti.Performance.perfLockRelease()
07-07 02:45:28.716 7593-7593/? V/BoostFramework: mAcquireTouchFunc method = public int com.qualcomm.qti.Performance.perfLockAcquireTouch(android.view.MotionEvent,android.util.DisplayMetrics,int,int[])
07-07 02:45:28.716 7593-7593/? V/BoostFramework: mIOPStart method = public int com.qualcomm.qti.Performance.perfIOPrefetchStart(int,java.lang.String)
07-07 02:45:28.716 7593-7593/? V/BoostFramework: mIOPStop method = public int com.qualcomm.qti.Performance.perfIOPrefetchStop()
07-07 02:45:28.718 7593-7593/? V/BoostFramework: BoostFramework() : mPerf = com.qualcomm.qti.Performance@911cec2
07-07 02:45:28.718 7593-7593/? V/BoostFramework: BoostFramework() : mPerf = com.qualcomm.qti.Performance@5a054d3
07-07 02:45:28.878 7593-7593/? I/WebViewFactory: Loading com.android.chrome version 67.0.3396.87 (code 339608702)
07-07 02:45:28.929 7593-7593/? I/cr_LibraryLoader: Time to load native libraries: 5 ms (timestamps 6377-6382)
07-07 02:45:28.935 7593-7593/? I/chromium: [INFO:library_loader_hooks.cc(36)] Chromium logging enabled: level = 0, default verbosity = 0
07-07 02:45:28.936 7593-7593/? I/cr_LibraryLoader: Expected native library version number "67.0.3396.87", actual native library version number "67.0.3396.87"
07-07 02:45:28.969 7593-7593/? I/cr_BrowserStartup: Initializing chromium process, singleProcess=true
07-07 02:45:28.970 7593-7593/? I/cr_base: Android Locale: en_IN requires .pak files: [en-GB.pak, en-US.pak]
07-07 02:45:28.991 7593-7593/? W/ResourceType: Failure getting entry for 0x7f120479 (t=17 e=1145) (error -2147483647)
07-07 02:45:29.063 7593-7593/? I/art: Rejecting re-init on previously-failed class java.lang.Class<vp>: java.lang.NoClassDefFoundError: Failed resolution of: Landroid/webkit/SafeBrowsingResponse;
07-07 02:45:29.063 7593-7593/? I/art:     at void com.android.webview.chromium.WebViewChromium.init(java.util.Map, boolean) (PG:53)
07-07 02:45:29.063 7593-7593/? I/art:     at void android.webkit.WebView.<init>(android.content.Context, android.util.AttributeSet, int, int, java.util.Map, boolean) (WebView.java:636)
07-07 02:45:29.063 7593-7593/? I/art:     at void android.webkit.WebView.<init>(android.content.Context, android.util.AttributeSet, int, int) (WebView.java:572)
07-07 02:45:29.063 7593-7593/? I/art:     at void android.webkit.WebView.<init>(android.content.Context, android.util.AttributeSet, int) (WebView.java:555)
07-07 02:45:29.063 7593-7593/? I/art:     at void android.webkit.WebView.<init>(android.content.Context, android.util.AttributeSet) (WebView.java:542)
07-07 02:45:29.064 7593-7593/? I/art:     at void android.webkit.WebView.<init>(android.content.Context) (WebView.java:532)
07-07 02:45:29.064 7593-7593/? I/art:     at android.webkit.WebView com.amazon.device.ads.WebViewFactory$WebViewConstructor.createWebView(android.content.Context) (WebViewFactory.java:187)
07-07 02:45:29.064 7593-7593/? I/art:     at android.webkit.WebView com.amazon.device.ads.WebViewFactory.createWebView(android.content.Context) (WebViewFactory.java:59)
07-07 02:45:29.064 7593-7593/? I/art:     at void com.amazon.device.ads.UserAgentManager$1.run() (UserAgentManager.java:70)
07-07 02:45:29.064 7593-7593/? I/art:     at void com.amazon.device.ads.ThreadUtils$ThreadExecutor.execute(java.lang.Runnable) (ThreadUtils.java:364)
07-07 02:45:29.064 7593-7593/? I/art:     at void com.amazon.device.ads.ThreadUtils$ThreadRunner.execute(java.lang.Runnable, com.amazon.device.ads.ThreadUtils$ExecutionStyle, com.amazon.device.ads.ThreadUtils$ExecutionThread) (ThreadUtils.java:173)
07-07 02:45:29.064 7593-7593/? I/art:     at void com.amazon.device.ads.UserAgentManager.populateUserAgentString(android.content.Context) (UserAgentManager.java:65)
07-07 02:45:29.064 7593-7593/? I/art:     at void com.amazon.device.ads.DeviceInfo.populateUserAgentString(android.content.Context) (DeviceInfo.java:364)
07-07 02:45:29.064 7593-7593/? I/art:     at boolean com.amazon.device.ads.AdController.prepareForAdLoad(long, boolean) (AdController.java:869)
07-07 02:45:29.064 7593-7593/? I/art:     at boolean com.amazon.device.ads.AdSlot.prepareForAdLoad(long) (AdSlot.java:118)
07-07 02:45:29.064 7593-7593/? I/art:     at void com.amazon.device.ads.AdLoadStarter.loadAds(int, com.amazon.device.ads.AdTargetingOptions, com.amazon.device.ads.AdSlot[]) (AdLoadStarter.java:94)
07-07 02:45:29.064 7593-7593/? I/art:     at boolean com.amazon.device.ads.AdLayout.loadAd(com.amazon.device.ads.AdTargetingOptions) (AdLayout.java:764)
07-07 02:45:29.064 7593-7593/? I/art:     at void com.bozon.shubh.pen.bozonink.MainActivity.onCreate(android.os.Bundle) (MainActivity.java:22)
07-07 02:45:29.064 7593-7593/? I/art:     at void android.app.Activity.performCreate(android.os.Bundle) (Activity.java:6705)
07-07 02:45:29.064 7593-7593/? I/art:     at void android.app.Instrumentation.callActivityOnCreate(android.app.Activity, android.os.Bundle) (Instrumentation.java:1119)
07-07 02:45:29.064 7593-7593/? I/art:     at android.app.Activity android.app.ActivityThread.performLaunchActivity(android.app.ActivityThread$ActivityClientRecord, android.content.Intent) (ActivityThread.java:2599)
07-07 02:45:29.064 7593-7593/? I/art:     at void android.app.ActivityThread.handleLaunchActivity(android.app.ActivityThread$ActivityClientRecord, android.content.Intent, java.lang.String) (ActivityThread.java:2707)
07-07 02:45:29.064 7593-7593/? I/art:     at void android.app.ActivityThread.-wrap12(android.app.ActivityThread, android.app.ActivityThread$ActivityClientRecord, android.content.Intent, java.lang.String) (ActivityThread.java:-1)
07-07 02:45:29.064 7593-7593/? I/art:     at void android.app.ActivityThread$H.handleMessage(android.os.Message) (ActivityThread.java:1460)
07-07 02:45:29.064 7593-7593/? I/art:     at void android.os.Handler.dispatchMessage(android.os.Message) (Handler.java:102)
07-07 02:45:29.064 7593-7593/? I/art:     at void android.os.Looper.loop() (Looper.java:154)
07-07 02:45:29.064 7593-7593/? I/art:     at void android.app.ActivityThread.main(java.lang.String[]) (ActivityThread.java:6077)
07-07 02:45:29.064 7593-7593/? I/art:     at java.lang.Object java.lang.reflect.Method.invoke!(java.lang.Object, java.lang.Object[]) (Method.java:-2)
07-07 02:45:29.064 7593-7593/? I/art:     at void com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run() (ZygoteInit.java:865)
07-07 02:45:29.064 7593-7593/? I/art:     at void com.android.internal.os.ZygoteInit.main(java.lang.String[]) (ZygoteInit.java:755)
07-07 02:45:29.064 7593-7593/? I/art: Caused by: java.lang.ClassNotFoundException: Didn't find class "android.webkit.SafeBrowsingResponse" on path: DexPathList[[zip file "/data/app/com.android.chrome-1/base.apk"],nativeLibraryDirectories=[/data/app/com.android.chrome-1/lib/arm, /data/app/com.android.chrome-1/base.apk!/lib/armeabi-v7a, /system/lib, /vendor/lib]]
07-07 02:45:29.064 7593-7593/? I/art:     at java.lang.Class dalvik.system.BaseDexClassLoader.findClass(java.lang.String) (BaseDexClassLoader.java:56)
07-07 02:45:29.064 7593-7593/? I/art:     at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String, boolean) (ClassLoader.java:380)
07-07 02:45:29.064 7593-7593/? I/art:     at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String) (ClassLoader.java:312)
07-07 02:45:29.064 7593-7593/? I/art:     at void com.android.webview.chromium.WebViewChromium.init(java.util.Map, boolean) (PG:53)
07-07 02:45:29.064 7593-7593/? I/art:     at void android.webkit.WebView.<init>(android.content.Context, android.util.AttributeSet, int, int, java.util.Map, boolean) (WebView.java:636)
07-07 02:45:29.064 7593-7593/? I/art:     at void android.webkit.WebView.<init>(android.content.Context, android.util.AttributeSet, int, int) (WebView.java:572)
07-07 02:45:29.064 7593-7593/? I/art:     at void android.webkit.WebView.<init>(android.content.Context, android.util.AttributeSet, int) (WebView.java:555)
07-07 02:45:29.064 7593-7593/? I/art:     at void android.webkit.WebView.<init>(android.content.Context, android.util.AttributeSet) (WebView.java:542)
07-07 02:45:29.064 7593-7593/? I/art:     at void android.webkit.WebView.<init>(android.content.Context) (WebView.java:532)
07-07 02:45:29.064 7593-7593/? I/art:     at android.webkit.WebView com.amazon.device.ads.WebViewFactory$WebViewConstructor.createWebView(android.content.Context) (WebViewFactory.java:187)
07-07 02:45:29.064 7593-7593/? I/art:     at android.webkit.WebView com.amazon.device.ads.WebViewFactory.createWebView(android.content.Context) (WebViewFactory.java:59)
07-07 02:45:29.064 7593-7593/? I/art:     at void com.amazon.device.ads.UserAgentManager$1.run() (UserAgentManager.java:70)
07-07 02:45:29.064 7593-7593/? I/art:     at void com.amazon.device.ads.ThreadUtils$ThreadExecutor.execute(java.lang.Runnable) (ThreadUtils.java:364)
07-07 02:45:29.064 7593-7593/? I/art:     at void com.amazon.device.ads.ThreadUtils$ThreadRunner.execute(java.lang.Runnable, com.amazon.device.ads.ThreadUtils$ExecutionStyle, com.amazon.device.ads.ThreadUtils$ExecutionThread) (ThreadUtils.java:173)
07-07 02:45:29.064 7593-7593/? I/art:     at void com.amazon.device.ads.UserAgentManager.populateUserAgentString(android.content.Context) (UserAgentManager.java:65)
07-07 02:45:29.064 7593-7593/? I/art:     at void com.amazon.device.ads.DeviceInfo.populateUserAgentString(android.content.Context) (DeviceInfo.java:364)
07-07 02:45:29.064 7593-7593/? I/art:     at boolean com.amazon.device.ads.AdController.prepareForAdLoad(long, boolean) (AdController.java:869)
07-07 02:45:29.064 7593-7593/? I/art:     at boolean com.amazon.device.ads.AdSlot.prepareForAdLoad(long) (AdSlot.java:118)
07-07 02:45:29.064 7593-7593/? I/art:     at void com.amazon.device.ads.AdLoadStarter.loadAds(int, com.amazon.device.ads.AdTargetingOptions, com.amazon.device.ads.AdSlot[]) (AdLoadStarter.java:94)
07-07 02:45:29.064 7593-7593/? I/art:     at boolean com.amazon.device.ads.AdLayout.loadAd(com.amazon.device.ads.AdTargetingOptions) (AdLayout.java:764)
07-07 02:45:29.064 7593-7593/? I/art:     at void com.bozon.shubh.pen.bozonink.MainActivity.onCreate(android.os.Bundle) (MainActivity.java:22)
07-07 02:45:29.064 7593-7593/? I/art:     at void android.app.Activity.performCreate(android.os.Bundle) (Activity.java:6705)
07-07 02:45:29.064 7593-7593/? I/art:     at void android.app.Instrumentation.callActivityOnCreate(android.app.Activity, android.os.Bundle) (Instrumentation.java:1119)
07-07 02:45:29.064 7593-7593/? I/art:     at android.app.Activity android.app.ActivityThread.performLaunchActivity(android.app.ActivityThread$ActivityClientRecord, android.content.Intent) (ActivityThread.java:2599)
07-07 02:45:29.064 7593-7593/? I/art:     at void android.app.ActivityThread.handleLaunchActivity(android.app.ActivityThread$ActivityClientRecord, android.content.Intent, java.lang.String) (ActivityThread.java:2707)
07-07 02:45:29.064 7593-7593/? I/art:     at void android.app.ActivityThread.-wrap12(android.app.ActivityThread, android.app.ActivityThread$ActivityClientRecord, android.content.Intent, java.lang.String) (ActivityThread.java:-1)
07-07 02:45:29.064 7593-7593/? I/art:     at void android.app.ActivityThread$H.handleMessage(android.os.Message) (ActivityThread.java:1460)
07-07 02:45:29.064 7593-7593/? I/art:     at void android.os.Handler.dispatchMessage(android.os.Message) (Handler.java:102)
07-07 02:45:29.064 7593-7593/? I/art:     at void android.os.Looper.loop() (Looper.java:154)
07-07 02:45:29.064 7593-7593/? I/art:     at void android.app.ActivityThread.main(java.lang.String[]) (ActivityThread.java:6077)
07-07 02:45:29.064 7593-7593/? I/art:     at java.lang.Object java.lang.reflect.Method.invoke!(java.lang.Object, java.lang.Object[]) (Method.java:-2)
07-07 02:45:29.064 7593-7593/? I/art:     at void com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run() (ZygoteInit.java:865)
07-07 02:45:29.064 7593-7593/? I/art:     at void com.android.internal.os.ZygoteInit.main(java.lang.String[]) (ZygoteInit.java:755)
07-07 02:45:29.072 7593-7593/? I/art: Rejecting re-init on previously-failed class java.lang.Class<yt>: java.lang.NoClassDefFoundError: Failed resolution of: Landroid/webkit/RenderProcessGoneDetail;
07-07 02:45:29.072 7593-7593/? I/art:     at void com.android.webview.chromium.WebViewChromium.init(java.util.Map, boolean) (PG:53)
07-07 02:45:29.072 7593-7593/? I/art:     at void android.webkit.WebView.<init>(android.content.Context, android.util.AttributeSet, int, int, java.util.Map, boolean) (WebView.java:636)
07-07 02:45:29.072 7593-7593/? I/art:     at void android.webkit.WebView.<init>(android.content.Context, android.util.AttributeSet, int, int) (WebView.java:572)
07-07 02:45:29.072 7593-7593/? I/art:     at void android.webkit.WebView.<init>(android.content.Context, android.util.AttributeSet, int) (WebView.java:555)
07-07 02:45:29.072 7593-7593/? I/art:     at void android.webkit.WebView.<init>(android.content.Context, android.util.AttributeSet) (WebView.java:542)
07-07 02:45:29.072 7593-7593/? I/art:     at void android.webkit.WebView.<init>(android.content.Context) (WebView.java:532)
07-07 02:45:29.072 7593-7593/? I/art:     at android.webkit.WebView com.amazon.device.ads.WebViewFactory$WebViewConstructor.createWebView(android.content.Context) (WebViewFactory.java:187)
07-07 02:45:29.072 7593-7593/? I/art:     at android.webkit.WebView com.amazon.device.ads.WebViewFactory.createWebView(android.content.Context) (WebViewFactory.java:59)
07-07 02:45:29.072 7593-7593/? I/art:     at void com.amazon.device.ads.UserAgentManager$1.run() (UserAgentManager.java:70)
07-07 02:45:29.072 7593-7593/? I/art:     at void com.amazon.device.ads.ThreadUtils$ThreadExecutor.execute(java.lang.Runnable) (ThreadUtils.java:364)
07-07 02:45:29.072 7593-7593/? I/art:     at void com.amazon.device.ads.ThreadUtils$ThreadRunner.execute(java.lang.Runnable, com.amazon.device.ads.ThreadUtils$ExecutionStyle, com.amazon.device.ads.ThreadUtils$ExecutionThread) (ThreadUtils.java:173)
07-07 02:45:29.072 7593-7593/? I/art:     at void com.amazon.device.ads.UserAgentManager.populateUserAgentString(android.content.Context) (UserAgentManager.java:65)
07-07 02:45:29.072 7593-7593/? I/art:     at void com.amazon.device.ads.DeviceInfo.populateUserAgentString(android.content.Context) (DeviceInfo.java:364)
07-07 02:45:29.072 7593-7593/? I/art:     at boolean com.amazon.device.ads.AdController.prepareForAdLoad(long, boolean) (AdController.java:869)
07-07 02:45:29.072 7593-7593/? I/art:     at boolean com.amazon.device.ads.AdSlot.prepareForAdLoad(long) (AdSlot.java:118)
07-07 02:45:29.072 7593-7593/? I/art:     at void com.amazon.device.ads.AdLoadStarter.loadAds(int, com.amazon.device.ads.AdTargetingOptions, com.amazon.device.ads.AdSlot[]) (AdLoadStarter.java:94)
07-07 02:45:29.072 7593-7593/? I/art:     at boolean com.amazon.device.ads.AdLayout.loadAd(com.amazon.device.ads.AdTargetingOptions) (AdLayout.java:764)
07-07 02:45:29.072 7593-7593/? I/art:     at void com.bozon.shubh.pen.bozonink.MainActivity.onCreate(android.os.Bundle) (MainActivity.java:22)
07-07 02:45:29.072 7593-7593/? I/art:     at void android.app.Activity.performCreate(android.os.Bundle) (Activity.java:6705)
07-07 02:45:29.072 7593-7593/? I/art:     at void android.app.Instrumentation.callActivityOnCreate(android.app.Activity, android.os.Bundle) (Instrumentation.java:1119)
07-07 02:45:29.072 7593-7593/? I/art:     at android.app.Activity android.app.ActivityThread.performLaunchActivity(android.app.ActivityThread$ActivityClientRecord, android.content.Intent) (ActivityThread.java:2599)
07-07 02:45:29.072 7593-7593/? I/art:     at void android.app.ActivityThread.handleLaunchActivity(android.app.ActivityThread$ActivityClientRecord, android.content.Intent, java.lang.String) (ActivityThread.java:2707)
07-07 02:45:29.072 7593-7593/? I/art:     at void android.app.ActivityThread.-wrap12(android.app.ActivityThread, android.app.ActivityThread$ActivityClientRecord, android.content.Intent, java.lang.String) (ActivityThread.java:-1)
07-07 02:45:29.072 7593-7593/? I/art:     at void android.app.ActivityThread$H.handleMessage(android.os.Message) (ActivityThread.java:1460)
07-07 02:45:29.072 7593-7593/? I/art:     at void android.os.Handler.dispatchMessage(android.os.Message) (Handler.java:102)
07-07 02:45:29.072 7593-7593/? I/art:     at void android.os.Looper.loop() (Looper.java:154)
07-07 02:45:29.072 7593-7593/? I/art:     at void android.app.ActivityThread.main(java.lang.String[]) (ActivityThread.java:6077)
07-07 02:45:29.072 7593-7593/? I/art:     at java.lang.Object java.lang.reflect.Method.invoke!(java.lang.Object, java.lang.Object[]) (Method.java:-2)
07-07 02:45:29.072 7593-7593/? I/art:     at void com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run() (ZygoteInit.java:865)
07-07 02:45:29.072 7593-7593/? I/art:     at void com.android.internal.os.ZygoteInit.main(java.lang.String[]) (ZygoteInit.java:755)
07-07 02:45:29.072 7593-7593/? I/art: Caused by: java.lang.ClassNotFoundException: Didn't find class "android.webkit.RenderProcessGoneDetail" on path: DexPathList[[zip file "/data/app/com.android.chrome-1/base.apk"],nativeLibraryDirectories=[/data/app/com.android.chrome-1/lib/arm, /data/app/com.android.chrome-1/base.apk!/lib/armeabi-v7a, /system/lib, /vendor/lib]]
07-07 02:45:29.072 7593-7593/? I/art:     at java.lang.Class dalvik.system.BaseDexClassLoader.findClass(java.lang.String) (BaseDexClassLoader.java:56)
07-07 02:45:29.072 7593-7593/? I/art:     at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String, boolean) (ClassLoader.java:380)
07-07 02:45:29.072 7593-7593/? I/art:     at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String) (ClassLoader.java:312)
07-07 02:45:29.072 7593-7593/? I/art:     at void com.android.webview.chromium.WebViewChromium.init(java.util.Map, boolean) (PG:53)
07-07 02:45:29.072 7593-7593/? I/art:     at void android.webkit.WebView.<init>(android.content.Context, android.util.AttributeSet, int, int, java.util.Map, boolean) (WebView.java:636)
07-07 02:45:29.072 7593-7593/? I/art:     at void android.webkit.WebView.<init>(android.content.Context, android.util.AttributeSet, int, int) (WebView.java:572)
07-07 02:45:29.072 7593-7593/? I/art:     at void android.webkit.WebView.<init>(android.content.Context, android.util.AttributeSet, int) (WebView.java:555)
07-07 02:45:29.072 7593-7593/? I/art:     at void android.webkit.WebView.<init>(android.content.Context, android.util.AttributeSet) (WebView.java:542)
07-07 02:45:29.072 7593-7593/? I/art:     at void android.webkit.WebView.<init>(android.content.Context) (WebView.java:532)
07-07 02:45:29.072 7593-7593/? I/art:     at android.webkit.WebView com.amazon.device.ads.WebViewFactory$WebViewConstructor.createWebView(android.content.Context) (WebViewFactory.java:187)
07-07 02:45:29.072 7593-7593/? I/art:     at android.webkit.WebView com.amazon.device.ads.WebViewFactory.createWebView(android.content.Context) (WebViewFactory.java:59)
07-07 02:45:29.072 7593-7593/? I/art:     at void com.amazon.device.ads.UserAgentManager$1.run() (UserAgentManager.java:70)
07-07 02:45:29.072 7593-7593/? I/art:     at void com.amazon.device.ads.ThreadUtils$ThreadExecutor.execute(java.lang.Runnable) (ThreadUtils.java:364)
07-07 02:45:29.072 7593-7593/? I/art:     at void com.amazon.device.ads.ThreadUtils$ThreadRunner.execute(java.lang.Runnable, com.amazon.device.ads.ThreadUtils$ExecutionStyle, com.amazon.device.ads.ThreadUtils$ExecutionThread) (ThreadUtils.java:173)
07-07 02:45:29.072 7593-7593/? I/art:     at void com.amazon.device.ads.UserAgentManager.populateUserAgentString(android.content.Context) (UserAgentManager.java:65)
07-07 02:45:29.072 7593-7593/? I/art:     at void com.amazon.device.ads.DeviceInfo.populateUserAgentString(android.content.Context) (DeviceInfo.java:364)
07-07 02:45:29.072 7593-7593/? I/art:     at boolean com.amazon.device.ads.AdController.prepareForAdLoad(long, boolean) (AdController.java:869)
07-07 02:45:29.072 7593-7593/? I/art:     at boolean com.amazon.device.ads.AdSlot.prepareForAdLoad(long) (AdSlot.java:118)
07-07 02:45:29.072 7593-7593/? I/art:     at void com.amazon.device.ads.AdLoadStarter.loadAds(int, com.amazon.device.ads.AdTargetingOptions, com.amazon.device.ads.AdSlot[]) (AdLoadStarter.java:94)
07-07 02:45:29.072 7593-7593/? I/art:     at boolean com.amazon.device.ads.AdLayout.loadAd(com.amazon.device.ads.AdTargetingOptions) (AdLayout.java:764)
07-07 02:45:29.072 7593-7593/? I/art:     at void com.bozon.shubh.pen.bozonink.MainActivity.onCreate(android.os.Bundle) (MainActivity.java:22)
07-07 02:45:29.072 7593-7593/? I/art:     at void android.app.Activity.performCreate(android.os.Bundle) (Activity.java:6705)
07-07 02:45:29.072 7593-7593/? I/art:     at void android.app.Instrumentation.callActivityOnCreate(android.app.Activity, android.os.Bundle) (Instrumentation.java:1119)
07-07 02:45:29.072 7593-7593/? I/art:     at android.app.Activity android.app.ActivityThread.performLaunchActivity(android.app.ActivityThread$ActivityClientRecord, android.content.Intent) (ActivityThread.java:2599)
07-07 02:45:29.072 7593-7593/? I/art:     at void android.app.ActivityThread.handleLaunchActivity(android.app.ActivityThread$ActivityClientRecord, android.content.Intent, java.lang.String) (ActivityThread.java:2707)
07-07 02:45:29.072 7593-7593/? I/art:     at void android.app.ActivityThread.-wrap12(android.app.ActivityThread, android.app.ActivityThread$ActivityClientRecord, android.content.Intent, java.lang.String) (ActivityThread.java:-1)
07-07 02:45:29.072 7593-7593/? I/art:     at void android.app.ActivityThread$H.handleMessage(android.os.Message) (ActivityThread.java:1460)
07-07 02:45:29.072 7593-7593/? I/art:     at void android.os.Handler.dispatchMessage(android.os.Message) (Handler.java:102)
07-07 02:45:29.072 7593-7593/? I/art:     at void android.os.Looper.loop() (Looper.java:154)
07-07 02:45:29.072 7593-7593/? I/art:     at void android.app.ActivityThread.main(java.lang.String[]) (ActivityThread.java:6077)
07-07 02:45:29.072 7593-7593/? I/art:     at java.lang.Object java.lang.reflect.Method.invoke!(java.lang.Object, java.lang.Object[]) (Method.java:-2)
07-07 02:45:29.072 7593-7593/? I/art:     at void com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run() (ZygoteInit.java:865)
07-07 02:45:29.072 7593-7593/? I/art:     at void com.android.internal.os.ZygoteInit.main(java.lang.String[]) (ZygoteInit.java:755)
07-07 02:45:29.220 7593-7642/com.bozon.shubh.pen.bozoninkpen I/Adreno: QUALCOMM build                   : c6f59fa, Ie9c95840c4
                                                                       Build Date                       : 06/16/17
                                                                       OpenGL ES Shader Compiler Version: XE031.09.00.03
                                                                       Local Branch                     : 
                                                                       Remote Branch                    : refs/tags/AU_LINUX_ANDROID_LA.UM.5.5.R1.07.00.00.269.021
                                                                       Remote Branch                    : NONE
                                                                       Reconstruct Branch               : NOTHING
07-07 02:45:29.227 7593-7642/com.bozon.shubh.pen.bozoninkpen I/OpenGLRenderer: Initialized EGL, version 1.4
07-07 02:45:29.227 7593-7642/com.bozon.shubh.pen.bozoninkpen D/OpenGLRenderer: Swap behavior 1
07-07 02:45:29.268 7593-7593/com.bozon.shubh.pen.bozoninkpen W/art: Before Android 4.1, method int android.support.v7.widget.ListViewCompat.lookForSelectablePosition(int, boolean) would have incorrectly overridden the package-private method in android.widget.ListView
07-07 02:45:29.301 7593-7649/com.bozon.shubh.pen.bozoninkpen W/cr_CrashFileManager: /data/user/0/com.bozon.shubh.pen.bozoninkpen/cache/WebView/Crash Reports does not exist or is not a directory
07-07 02:45:29.333 7593-7610/com.bozon.shubh.pen.bozoninkpen I/DpmTcmClient: RegisterTcmMonitor from: com.android.okhttp.TcmIdleTimerMonitor
07-07 02:45:29.336 7593-7610/com.bozon.shubh.pen.bozoninkpen D/NetworkSecurityConfig: No Network Security Config specified, using platform default



mobile adsandroidmonetization
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Levon@Amazon avatar image
Levon@Amazon answered

Hi Sarvesh,

The first thing to do is to load the sample app included with the SDK and ensure you can see banner ads. Next, is the country from which you are running your app -- if it is India, then please note that Amazon Mobile Ads are not supported in India. For all other troubleshooting tips, I would strongly suggest going through our Knowledge Base articles here:

https://forums.developer.amazon.com/articles/18195/disabled-app-changes.html https://forums.developer.amazon.com/articles/18197/why-am-i-receiving-no-fill-errors.html https://forums.developer.amazon.com/articles/18196/why-is-my-fill-rate-dropping.html https://developer.amazon.com/public/apis/earn/mobile-ads/docs/faq https://developer.amazon.com/appsandservices/apis/earn/mobile-ads/docs/event-tracking-and-errors

Thanks!

10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

newuser-379af710-70a1-4520-ae87-e76857c9702c avatar image
newuser-379af710-70a1-4520-ae87-e76857c9702c answered

Non of the documention above helps solving the NO_FILL error thats been happening in the last 2 months. New SDK 5.9 does not work, even test ads are not showing (location is germany). Something is broken with the SDK itself.

10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Levon@Amazon avatar image
Levon@Amazon answered

Hi there,

You will need to use GDPR with the latest SDK. Please see the section entitled "Has your SDK been updated for GDPR" here: https://developer.amazon.com/fr/docs/mobile-ads/mb-faq.html

Please also see the related thread here:

https://forums.developer.amazon.com/questions/171427/sdk-version-582-is-not-downloaded-by-gradle-no-ads.html

10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

newuser-379af710-70a1-4520-ae87-e76857c9702c avatar image
newuser-379af710-70a1-4520-ae87-e76857c9702c answered

So it took amazon 2 months in order to add 4 lines of "documentation" code that are completely useless as they only show how to open and close a shared preferences object. They completely fail to write proper instructions how to pass the object to the amazon SDK or to give a proper example on how to construct this consent string while sending us to some general website with no manual or proper examples for programmers to be found. And to top it all off, Amazon is not even registered as a vendor.


Amazing how amazon can't even provide 1 simple API method "AmazonSDK.userHasConsent(true);" and do the rest of consent string manipulation in the SDK itself rather than expect us to do the work their own programmers are paid to do. Very impressive.

10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.