gpt4 book ai didi

java - Interstitial Ad 的 Listener 的 onAdLoaded() 不会运行

转载 作者:行者123 更新时间:2023-11-29 08:48:53 25 4
gpt4 key购买 nike

interstitial.setAdListener(new AdListener(){
public void onAdLoaded(){
display();
}
});

我尝试使用调试器,第一行运行了,但第二行根本没有运行。这是我在 onCreate 方法中初始化广告的方式:

interstitial = new InterstitialAd(this);
interstitial.setAdUnitId("******************************");
AdRequest adRequest = new AdRequest.Builder().build();
interstitial.loadAd(adRequest);

InterstitialAd interstitial; 在类内部的方法之外。 AdUnitId 被故意抹去。

日志:

05-17 20:10:49.802: E/GooglePlayServicesUtil(17509): The Google Play services resources were not found. Check your project configuration to ensure that the resources are included.
05-17 20:10:49.807: E/GooglePlayServicesUtil(17509): The Google Play services resources were not found. Check your project configuration to ensure that the resources are included.
05-17 20:10:51.597: I/GATE(17509): <GATE-M>DEV_ACTION_COMPLETED</GATE-M>
05-17 20:10:51.597: I/Ads(17509): Scheduling ad refresh 60000 milliseconds from now.
05-17 20:10:51.602: I/Ads(17509): Ad finished loading.
05-17 20:10:51.632: D/TilesManager(17509): Starting TG #0, 0x5b3446f0
05-17 20:10:51.632: D/TilesManager(17509): new EGLContext from framework: 593202c0
05-17 20:10:51.632: D/GLWebViewState(17509): Reinit shader
05-17 20:10:51.632: D/GLWebViewState(17509): Reinit transferQueue
05-17 20:10:56.262: D/AbsListView(17509): Get MotionRecognitionManager
05-17 20:11:31.987: I/Ads(17509): Ad is not visible. Not refreshing ad.
05-17 20:11:31.992: I/Ads(17509): Scheduling ad refresh 60000 milliseconds from now.

最佳答案

onAdLoaded() 方法之前是否缺少@override

关于java - Interstitial Ad 的 Listener 的 onAdLoaded() 不会运行,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23710521/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com