ERROR_CODE_INTERNAL_ERROR - Something happened internally; for instance, an invalid response was received from the ad server.MobileAds.initialize(this, getResources().getString(R.string.admob_app_id));
// AdMob Banner
AdView adView = findViewById(R.id.adView);
adView.loadAd(new AdRequest.Builder().build());
<com.google.android.gms.ads.AdView xmlns:ads="http://schemas.android.com/apk/res-auto"
android:id="@+id/adView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_centerHorizontal="true"
android:layout_marginBottom="@dimen/activity_vertical_margin"
ads:adSize="SMART_BANNER"
ads:adUnitId="@string/admob_ad_unit_id_banner" />
// AdMob Interstitial
mInterstitialAd = new InterstitialAd(context);
mInterstitialAd.setAdUnitId(context.getString(R.string.admob_ad_unit_id_interstitial));
loadAd();
mInterstitialAd.setAdListener(new AdListener() {
@Override
public void onAdClosed() {
loadAd();
// Do stuff....
}
});
private void loadAd() {
// Request a new ad if one isn't already loaded
if (!mInterstitialAd.isLoading() && !mInterstitialAd.isLoaded()) {
mInterstitialAd.loadAd(new AdRequest.Builder().build());
}
}Gradledependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:27.1.1'
implementation 'com.android.support.constraint:constraint-layout:1.1.2'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
// AdMob
implementation 'com.google.android.gms:play-services-ads:15.0.1'
}AndroidManifest<meta-data
android:name="com.google.android.gms.ads.APPLICATION_ID"
android:value="@string/admob_app_id"/>
</application>----------W/Ads: There was a problem getting an ad response. ErrorCode: 0W/Ads: Failed to load ad: 0----------Any clue about what is the issue?
Any clue about what is the issue?
--
---
You received this message because you are subscribed to the Google Groups "Google Mobile Ads SDK Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-admob-ads-sdk+unsub...@googlegroups.com.
To post to this group, send email to google-admob-ads-sdk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-admob-ads-sdk/12a66f27-1972-4d16-9a46-93288bc79eae%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
2018-09-28 12:17:25.013 28444-28444/*****PackageName***** I/Ads: Starting ad request.
2018-09-28 12:17:25.013 28444-28444/*****PackageName***** I/Ads: SDK version: afma-sdk-a-v13280021.12451000.1
2018-09-28 12:17:25.014 28444-28444/*****PackageName***** I/Ads: Use AdRequest.Builder.addTestDevice("C4855B8372E18C59B6E74453712FB11A") to get test ads on this device.
2018-09-28 12:17:25.059 28444-28444/*****PackageName***** I/Ads: Starting ad request.
2018-09-28 12:17:25.059 28444-28444/*****PackageName***** I/Ads: SDK version: afma-sdk-a-v13280021.12451000.1
2018-09-28 12:17:25.060 28444-28444/*****PackageName***** I/Ads: Use AdRequest.Builder.addTestDevice("C4855B8372E18C59B6E74453712FB11A") to get test ads on this device.
2018-09-28 12:17:25.063 28444-28444/*****PackageName***** W/Ads: Not retrying to fetch app settings
2018-09-28 12:17:25.256 4446-4446/? W/Ads: #004 The webview is destroyed. Ignoring action.
2018-09-28 12:17:25.265 4446-4446/? W/Ads: #004 The webview is destroyed. Ignoring action.
2018-09-28 12:17:35.258 4446-6021/? E/Ads: Error waiting for future.
java.util.concurrent.ExecutionException: java.util.concurrent.TimeoutException
at com.google.android.gms.ads.internal.util.future.ae.get(:com.google.android.gms@1328...@13.2.80 (040408-211705629):11)
at com.google.android.gms.ads.internal.util.future.g.a(:com.google.android.gms@13280021@13.2.80 (040408-211705629):13)
at com.google.android.gms.ads.internal.request.service.c.a(:com.google.android.gms@1328...@13.2.80 (040408-211705629):65)
at com.google.android.gms.ads.internal.request.service.c.a(:com.google.android.gms@1328...@13.2.80 (040408-211705629):198)
at com.google.android.gms.ads.internal.request.service.f.run(:com.google.android.gms@1328...@13.2.80 (040408-211705629):1)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:458)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636)
at java.lang.Thread.run(Thread.java:764)
Caused by: java.util.concurrent.TimeoutException
at com.google.android.gms.ads.internal.util.future.m.run(Unknown Source:2)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:458)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:301)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636)
at java.lang.Thread.run(Thread.java:764)
2018-09-28 12:17:35.260 28444-28463/*****PackageName***** W/Ads: There was a problem getting an ad response. ErrorCode: 0
2018-09-28 12:17:35.261 28444-28444/*****PackageName***** W/Ads: Failed to load ad: 0
2018-09-28 12:17:35.267 4446-29567/? E/Ads: Error waiting for future.
java.util.concurrent.ExecutionException: java.util.concurrent.TimeoutException
at com.google.android.gms.ads.internal.util.future.ae.get(:com.google.android.gms@1328...@13.2.80 (040408-211705629):11)
at com.google.android.gms.ads.internal.util.future.g.a(:com.google.android.gms@13280021@13.2.80 (040408-211705629):13)
at com.google.android.gms.ads.internal.request.service.c.a(:com.google.android.gms@1328...@13.2.80 (040408-211705629):65)
at com.google.android.gms.ads.internal.request.service.c.a(:com.google.android.gms@1328...@13.2.80 (040408-211705629):198)
at com.google.android.gms.ads.internal.request.service.f.run(:com.google.android.gms@1328...@13.2.80 (040408-211705629):1)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:458)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636)
at java.lang.Thread.run(Thread.java:764)
Caused by: java.util.concurrent.TimeoutException
at com.google.android.gms.ads.internal.util.future.m.run(Unknown Source:2)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:458)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:301)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636)
at java.lang.Thread.run(Thread.java:764)
2018-09-28 12:17:35.273 28444-28463/*****PackageName***** W/Ads: There was a problem getting an ad response. ErrorCode: 0
2018-09-28 12:17:35.274 28444-28444/*****PackageName***** W/Ads: Failed to load ad: 0Note:Yesterday, running the App using the Android Emulator, the ads showed with a title at the top saying "Test Ads" but, today they are not appearing. I received the error:ERROR_CODE_NO_FILL which means, according to the documentation: "The ad request was successful, but no ad was returned due to lack of ad inventory.". Well, I think this is not an error but, at least using the Emulator I should see an example banner (a Test Ad), just like I saw yesterday. It seems that the behavior of the things is changing.
--
---
You received this message because you are subscribed to the Google Groups "Google Mobile Ads SDK Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-admob-ads-sdk+unsub...@googlegroups.com.
To post to this group, send email to google-admob-ads-sdk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-admob-ads-sdk/ee673527-9d8f-456a-9f68-2a5ed7228720%40googlegroups.com.
Hi,I would like to let you know that yesterday I saw ads on my Android 8.0 phone but, today the ads disappeared again. The ads are not showing.
--
---
You received this message because you are subscribed to the Google Groups "Google Mobile Ads SDK Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-admob-ads-sdk+unsub...@googlegroups.com.
To post to this group, send email to google-admob-ads-sdk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-admob-ads-sdk/4e81f521-542b-4ad1-b3cc-78db9d33a592%40googlegroups.com.
Hello! I have exactly the same problem on Samsung Galaxy S7 (Android 8.0.0) device only. All other devices and emulators works well. Different apps, assigned to different AdMob accounts, different versions of "play-services-ads" including the latest one, different network connections - doesn't matter - all ways don't show the ads on Samsung Galaxy S7.
Do you have any update when the fix will be released? Thanks!
On Monday, October 22, 2018 at 3:01:57 PM UTC+7, mobileadssdk-a...@google.com wrote:
Hi Robert,Thank you for getting back to us on this.Please note that a fix is already in place for this, however, we have no definite timelines on its release. Rest asurred that this is a high priority for the team. That said, I'll keep you posted for any updates.Regards,Ivan BautistaMobile Ads SDK Team
On 10/21/18 21:33:09 rrg...@gmail.com wrote:
Hi,--I would like to let you know that yesterday I saw ads on my Android 8.0 phone but, today the ads disappeared again. The ads are not showing.
---
You received this message because you are subscribed to the Google Groups "Google Mobile Ads SDK Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-admob-ads-sdk+unsubscrib...@googlegroups.com.
To post to this group, send email to google-admob-ads-sdk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-admob-ads-sdk/4e81f521-542b-4ad1-b3cc-78db9d33a592%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
---
You received this message because you are subscribed to the Google Groups "Google Mobile Ads SDK Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-admob-ads-sdk+unsub...@googlegroups.com.
To post to this group, send email to google-admob-ads-sdk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-admob-ads-sdk/49564a4b-d77c-4f74-b8ad-2a4b825ed10e%40googlegroups.com.