Giter Site home page Giter Site logo

Comments (8)

kot331107 avatar kot331107 commented on June 15, 2024

@Hasan-Mahmud please send your LogCat filtered with "ads"

from admobadapter.

Hasan-Mahmud avatar Hasan-Mahmud commented on June 15, 2024

@kot331107
07-12 16:48:14.894 31812-31812/com.greypixelapps.guide.clashofclans I/Ads: Scheduling ad refresh 60000 milliseconds from now.
07-12 16:48:15.054 31812-31812/com.greypixelapps.guide.clashofclans I/Ads: Starting ad request.
07-12 16:48:15.064 31812-31812/com.greypixelapps.guide.clashofclans I/Ads: Use AdRequest.Builder.addTestDevice("D557F4B7EAE8CD020E0E79380D8E76DC") to get test ads on this device.
07-12 16:48:15.415 31812-31812/com.greypixelapps.guide.clashofclans I/Ads: Starting ad request.
07-12 16:48:15.415 31812-31812/com.greypixelapps.guide.clashofclans I/Ads: Use AdRequest.Builder.addTestDevice("D557F4B7EAE8CD020E0E79380D8E76DC") to get test ads on this device.
07-12 16:48:15.415 31812-31812/com.greypixelapps.guide.clashofclans W/Ads: Not retrying to fetch app settings
07-12 16:48:17.207 32006-32006/? I/DownloadManager: DownloadService onCreate
07-12 16:48:17.217 32006-32006/? I/DownloadManager: DownloadService onStartCommand
07-12 16:48:17.227 32006-32441/? I/DownloadManager: DownloadService updating for startId 1
07-12 16:48:17.307 32006-32441/? I/DownloadManager: DownloadService inserdDownloadLocked 1
07-12 16:48:17.337 32006-32441/? I/DownloadManager: DownloadService inserdDownloadLocked 9
07-12 16:48:17.367 32006-32006/? I/DownloadManager: DownloadService onDestroy
07-12 16:48:17.377 32006-32441/? I/DownloadManager: DownloadService Nothing left stopped startId 1
07-12 16:48:20.380 31812-31812/com.greypixelapps.guide.clashofclans I/Ads: Scheduling ad refresh 70000 milliseconds from now.
07-12 16:48:20.410 31812-31812/com.greypixelapps.guide.clashofclans I/dalvikvm: Could not find method android.os.PowerManager.isInteractive, referenced from method com.google.android.gms.ads.internal.activeview.c.g
07-12 16:48:20.590 31812-31812/com.greypixelapps.guide.clashofclans I/Ads: Ad finished loading.
07-12 16:48:20.700 31812-31812/com.greypixelapps.guide.clashofclans I/Ads: Ad finished loading.
07-12 16:48:21.000 31812-32535/com.greypixelapps.guide.clashofclans I/System.out:
07-12 16:48:23.082 31812-31812/com.greypixelapps.guide.clashofclans D/DynamitePackage: Instantiating com.google.android.gms.ads.ChimeraMobileAdsSettingManagerCreatorImpl
07-12 16:48:23.132 31812-31812/com.greypixelapps.guide.clashofclans D/DynamitePackage: Instantiating com.google.android.gms.ads.ChimeraAdManagerCreatorImpl
07-12 16:48:23.172 31812-31812/com.greypixelapps.guide.clashofclans I/Ads: Starting ad request.
07-12 16:48:23.172 31812-31812/com.greypixelapps.guide.clashofclans I/Ads: Use AdRequest.Builder.addTestDevice("D557F4B7EAE8CD020E0E79380D8E76DC") to get test ads on this device.
07-12 16:48:23.182 31812-31812/com.greypixelapps.guide.clashofclans W/Ads: Not retrying to fetch app settings
07-12 16:48:23.413 14286-32033/? W/Ads: App does not have the required permissions to get location
07-12 16:48:23.523 31812-31812/com.greypixelapps.guide.clashofclans I/com.clockbyte.admobadapter.bannerads.AdmobFetcherBanner: Fetching Ad now
07-12 16:48:23.523 31812-31812/com.greypixelapps.guide.clashofclans I/com.clockbyte.admobadapter.bannerads.AdmobFetcherBanner: Fetching Ad now
07-12 16:48:23.893 31812-31812/com.greypixelapps.guide.clashofclans D/DynamitePackage: Instantiating com.google.android.gms.ads.ChimeraAdManagerCreatorImpl
07-12 16:48:23.903 31812-31812/com.greypixelapps.guide.clashofclans I/Ads: Starting ad request.
07-12 16:48:23.903 31812-31812/com.greypixelapps.guide.clashofclans I/Ads: This request is sent from a test device.
07-12 16:48:23.903 31812-31812/com.greypixelapps.guide.clashofclans W/Ads: Not retrying to fetch app settings
07-12 16:48:23.933 31812-31812/com.greypixelapps.guide.clashofclans D/DynamitePackage: Instantiating com.google.android.gms.ads.ChimeraAdManagerCreatorImpl
07-12 16:48:23.943 31812-31812/com.greypixelapps.guide.clashofclans I/Ads: Starting ad request.
07-12 16:48:23.943 31812-31812/com.greypixelapps.guide.clashofclans I/Ads: This request is sent from a test device.
07-12 16:48:23.943 31812-31812/com.greypixelapps.guide.clashofclans W/Ads: Not retrying to fetch app settings
07-12 16:48:24.033 14286-32036/? W/Ads: App does not have the required permissions to get location
07-12 16:48:24.303 14286-32421/? W/Ads: App does not have the required permissions to get location
07-12 16:48:25.685 31812-31812/com.greypixelapps.guide.clashofclans I/Ads: Scheduling ad refresh 70000 milliseconds from now.
07-12 16:48:25.715 31812-31812/com.greypixelapps.guide.clashofclans I/DynamiteModule: Considering local module com.google.android.gms.ads.dynamite:0 and remote module com.google.android.gms.ads.dynamite:290
07-12 16:48:25.715 31812-31812/com.greypixelapps.guide.clashofclans I/DynamiteModule: Selected remote version of com.google.android.gms.ads.dynamite, version >= 290
07-12 16:48:25.765 31812-31812/com.greypixelapps.guide.clashofclans I/Ads: Ad finished loading.
07-12 16:48:25.765 31812-31812/com.greypixelapps.guide.clashofclans I/com.clockbyte.admobadapter.bannerads.AdmobFetcherBanner: onAdFetched
07-12 16:48:25.805 31812-31812/com.greypixelapps.guide.clashofclans W/Ads: Not enough space to show ad. Needs 320x50 dp, but only has 313x50 dp.
07-12 16:48:26.225 31812-31812/com.greypixelapps.guide.clashofclans I/Ads: Scheduling ad refresh 70000 milliseconds from now.
07-12 16:48:26.235 31812-31812/com.greypixelapps.guide.clashofclans I/Ads: Ad finished loading.
07-12 16:48:26.656 31812-31812/com.greypixelapps.guide.clashofclans I/Ads: Scheduling ad refresh 70000 milliseconds from now.
07-12 16:48:26.666 31812-31812/com.greypixelapps.guide.clashofclans I/DynamiteModule: Considering local module com.google.android.gms.ads.dynamite:0 and remote module com.google.android.gms.ads.dynamite:290
07-12 16:48:26.666 31812-31812/com.greypixelapps.guide.clashofclans I/DynamiteModule: Selected remote version of com.google.android.gms.ads.dynamite, version >= 290
07-12 16:48:26.676 31812-31812/com.greypixelapps.guide.clashofclans I/Ads: Ad finished loading.
07-12 16:48:26.676 31812-31812/com.greypixelapps.guide.clashofclans I/com.clockbyte.admobadapter.bannerads.AdmobFetcherBanner: onAdFetched
07-12 16:48:27.757 31812-31812/com.greypixelapps.guide.clashofclans W/Ads: Not enough space to show ad. Needs 320x50 dp, but only has 313x50 dp.

I think ad are not loading for not enough space. But In my layout I don't have any right or left margin

from admobadapter.

kot331107 avatar kot331107 commented on June 15, 2024

@Hasan-Mahmud Then you definitely have some paddings there... try to use the method
setSingleAdSize(<put your AdSize from log, i.e. 313x50>)

from admobadapter.

Hasan-Mahmud avatar Hasan-Mahmud commented on June 15, 2024

@kot331107 thanks for your Replay. But when i build admobadapter code it gives me same problem.

from admobadapter.

kot331107 avatar kot331107 commented on June 15, 2024

@Hasan-Mahmud
image
Strange, because I have ad banners displaying OK...Are you sure you use the sampleapp demo project without any specific changes from you side?

from admobadapter.

Hasan-Mahmud avatar Hasan-Mahmud commented on June 15, 2024

@kot331107
I think so.
<android.support.v7.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/ad_card_view"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
app:cardCornerRadius="0dp"
app:cardElevation="0dp">

<LinearLayout
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:orientation="vertical">

    <FrameLayout android:id="@+id/ad_container"
        android:layout_width="match_parent"
        android:layout_height="wrap_content">
        <TextView android:id="@+id/text"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="Ad is loading..."
            android:textColor="@android:color/holo_red_dark"/>
    </FrameLayout>

    <FrameLayout
        android:id="@+id/margin_bottom"
        android:layout_width="match_parent"
        android:layout_height="8dp"
        android:background="@android:color/holo_red_dark"/>

</LinearLayout>

</android.support.v7.widget.CardView>

custom layout for implement own custom wrapping behaviour: it was given by default.
and logcat is

07-15 17:29:44.140 9410-9410/com.clockbyte.admobadapter.sampleapp I/Ads: Use AdRequest.Builder.addTestDevice("D557F4B7EAE8CD020E0E79380D8E76DC") to get test ads on this device.
07-15 17:29:44.160 9410-9410/com.clockbyte.admobadapter.sampleapp W/Ads: Not retrying to fetch app settings
07-15 17:29:44.210 9387-10208/? W/Ads: App does not have the required permissions to get location
07-15 17:29:44.250 9387-10211/? W/Ads: App does not have the required permissions to get location
07-15 17:29:45.221 9410-9410/com.clockbyte.admobadapter.sampleapp W/Ads: Not enough space to show ad. Needs 320x50 dp, but only has 317x50 dp.
07-15 17:29:45.371 9410-9410/com.clockbyte.admobadapter.sampleapp W/Ads: Not enough space to show ad. Needs 320x50 dp, but only has 317x50 dp.
07-15 17:29:45.581 9410-9410/com.clockbyte.admobadapter.sampleapp W/Ads: Not enough space to show ad. Needs 320x50 dp, but only has 317x50 dp.

But when I run it another device it's work just like you shown.

from admobadapter.

kot331107 avatar kot331107 commented on June 15, 2024

@Hasan-Mahmud Sorry for my late reply! So please try to add test device ID which was shown in your LogCat:

07-12 16:48:23.172 31812-31812/com.greypixelapps.guide.clashofclans I/Ads: Use AdRequest.Builder.addTestDevice("D557F4B7EAE8CD020E0E79380D8E76DC") to get test ads on this device.

just add this ID "D557F4B7EAE8CD020E0E79380D8E76DC" to your deviceIds.
When you'll be ready to release your app, pass the adMobUnitId as the ad unit ID from your Admob console (not the test one).
.setSingleAdUnitId(adMobUnitId)

from admobadapter.

kot331107 avatar kot331107 commented on June 15, 2024

@Hasan-Mahmud how its going?

from admobadapter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.