Firebase Admob广告在一个月后仍未显示,广告加载失败

Firebase Admob广告在一个月后仍未显示,广告加载失败,firebase,flutter,admob,Firebase,Flutter,Admob,我正在尝试在我的应用程序中实现Firebase Admob,并尝试在使用测试ID时使用横幅广告,但在使用真正的应用程序ID时不使用横幅广告。我等了大约一个月,仍然没有广告。 我看的文件都很好,据他们说还是没有运气 错误日志显示ad未能加载3 不知道是什么原因造成的。 谢谢 类ImagePath扩展StatefulWidget{ 最终字符串imgPath; ImagePath(this.imgPath); @凌驾 _ImagePathState createState()=>\u ImagePat

我正在尝试在我的应用程序中实现Firebase Admob,并尝试在使用测试ID时使用横幅广告,但在使用真正的应用程序ID时不使用横幅广告。我等了大约一个月,仍然没有广告。 我看的文件都很好,据他们说还是没有运气 错误日志显示ad未能加载3 不知道是什么原因造成的。 谢谢

类ImagePath扩展StatefulWidget{
最终字符串imgPath;
ImagePath(this.imgPath);
@凌驾
_ImagePathState createState()=>\u ImagePathState();
}
类_ImagePathState扩展状态{
字符串本地路径;
静态常量MobileAdTargetingInfo targetingInfo=MobileAdTargetingInfo(
testDevices:testDevice!=null?[testDevice]:null,
非人格化爸爸:没错,
关键词:[“网站”、“游戏”],
);
班纳拉德;
BannerAd createBannerAd(){
返回横幅(
adUnitId:“广告-身份-这里”,
大小:AdSize.banner,
targetingInfo:targetingInfo,
侦听器:(MobileAdEvent事件){
打印(“BannerAd$事件”);
});
}
@凌驾
void initState(){
FirebaseAdMob.instance
.初始化(appId:“APP-ID-HERE”);
bannerAd=createBannerAd()
…加载()
…显示(anchorType:anchorType.bottom);
super.initState();
}
@凌驾
无效处置(){
bannerAd?.dispose();
super.dispose();
}
未来获取本地路径异步{
最终结果=wait Permission.storage.request();
如果(结果==PermissionStatus.grated){
最终本地路径=
(等待findLocalPath())+Platform.pathSeparator+“下载”;
final savedDir=目录(localPath);
bool hasExisted=wait savedDir.exists();
如果(!已存在){
savedDir.create();
}
返回localPath;
}否则
返回null;
}
Future findLocalPath()异步{
最终目录=Platform.isAndroid
?等待getExternalStorageDirectory()
:等待getApplicationDocumentsDirectory();
返回directory.path;
}
@凌驾
小部件构建(构建上下文){
返回脚手架(
appBar:appBar(
背景颜色:bgColor,
领先:IconButton(
图标:图标(Icons.close),
onPressed:()=>Navigator.of(context.pop(),
颜色:颜色,白色,
),
行动:[
图标按钮(
颜色:颜色,白色,
图标:图标(Icons.file_下载),
onPressed:()异步=>下载任务(
taskId:wait downloader.enqueue(
url:widget.imgPath,
savedDir:等待localpath,
showNotification:对,
openFileFromNotification:true)))
],
),
正文:SizedBox.expand(
子:容器(
子:堆栈(
儿童:[
对齐(
对齐:对齐.center,
孩子:英雄(
标记:widget.imgPath,子项:Image.network(widget.imgPath)),
),
],
),
),
),
背景颜色:bgColor,
);
}
}
错误日志-

             D/ActivityThread(29222): holder:android.app.IActivityManager$ContentProviderHolder@c4e7070, holder.provider:android.content.ContentProviderProxy@a482fe9
            D/DynamitePackage(29222): Instantiating com.google.android.gms.ads.ChimeraMobileAdsSettingManagerCreatorImpl
            I/WebViewFactory(29222): Loading com.google.android.webview version 86.0.4240.110 (code 424011000)
            W/ResourceType(29222): Found multiple library tables, ignoring...
            I/System  (29222): FinalizerDaemon: finalize objects = 289
            D/WebView (29222): WebView<init>
            I/cr_LibraryLoader(29222): Loaded native library version number "86.0.4240.110"
            I/cr_CachingUmaRecorder(29222): Flushed 5 samples from 5 histograms.
            E/chromium(29222): [ERROR:filesystem_posix.cc(62)] mkdir /data/user/0/sagarrawatuk.fotoApp/cache/WebView/Crashpad: No such file or directory (2)
            D/ConnectivityManager.CallbackHandler(29222): CM callback handler got msg 524290
            D/WebView (29222): addJavascriptInterface=googleAdsJsInterface
            D/WebView (29222): removeJavascriptInterface=accessibility
            D/WebView (29222): removeJavascriptInterface=accessibilityTraversal
            D/WebView (29222): loadUrl=https://googleads.g.doubleclick.net/mads/static/mad/sdk/native/production/sdk-core-v40-impl.html
            W/cr_media(29222): Requires BLUETOOTH permission
            V/SettingsInterface(29222): invalidate [secure]: current 2 != cached 0
            E/libEGL  (29222): validate_display:255 error 3008 (EGL_BAD_DISPLAY)
            D/ActivityThread(29222): holder:android.app.IActivityManager$ContentProviderHolder@90636e7, holder.provider:android.content.ContentProviderProxy@a09f294
            D/DynamitePackage(29222): Instantiating com.google.android.gms.ads.ChimeraAdManagerCreatorImpl
            D/SettingsInterface(29222):  from settings cache , name = android_id , value = e6623267e10d401e
            I/Ads     (29222): Use RequestConfiguration.Builder().setTestDeviceIds(Arrays.asList("0D97118CC9A4746D5FDA6A253D5479F1") to get test ads on this device.
            D/MPlugin (29222): createInstance(): Begin = 485050486
            D/MPlugin (29222): create Instance (two parameters) with : com.mediatek.common.telephony.IOnlyOwnerSimSupport
            D/MPlugin (29222): Clazz exists on mapping table : false
            E/MPlugin (29222): Unsupported class: com.mediatek.common.telephony.IOnlyOwnerSimSupport
            D/MPlugin (29222): createInstance(): End = 485050486
            I/DynamiteModule(29222): Considering local module com.google.android.gms.ads.dynamite:0 and remote module com.google.android.gms.ads.dynamite:203404601
            I/DynamiteModule(29222): Selected remote version of com.google.android.gms.ads.dynamite, version >= 203404601
            D/SettingsInterface(29222):  from settings cache , name = accessibility_captioning_enabled , value = 0
            D/SettingsInterface(29222):  from settings cache , name = accessibility_captioning_font_scale , value = null
            D/SettingsInterface(29222):  from settings cache , name = accessibility_captioning_locale , value = null
            D/SettingsInterface(29222):  from settings cache , name = accessibility_captioning_preset , value = null
            D/libc-netbsd(29222): [getaddrinfo]: hostname=googleads.g.doubleclick.net; servname=(null); netid=0; mark=0
            D/libc-netbsd(29222): [getaddrinfo]: ai_addrlen=0; ai_canonname=(null); ai_flags=1024; ai_family=0
            W/Ads     (29222): Not retrying to fetch app settings
            D/libc-netbsd(29222): getaddrinfo: googleads.g.doubleclick.net get result from proxy gai_error = 0
            D/SettingsInterface(29222):  from settings cache , name = accessibility_captioning_enabled , value = 0
            D/SettingsInterface(29222):  from settings cache , name = accessibility_captioning_font_scale , value = null
            D/SettingsInterface(29222):  from settings cache , name = accessibility_captioning_locale , value = null
            D/SettingsInterface(29222):  from settings cache , name = accessibility_captioning_preset , value = null
            D/libc-netbsd(29222): [getaddrinfo]: hostname=googleads.g.doubleclick.net; servname=(null); netid=0; mark=0
            D/libc-netbsd(29222): [getaddrinfo]: ai_addrlen=0; ai_canonname=(null); ai_flags=1024; ai_family=0
            W/Ads     (29222): Not retrying to fetch app settings
            D/libc-netbsd(29222): getaddrinfo: googleads.g.doubleclick.net get result from proxy gai_error = 0
            D/OpenSSLLib(29222): OpensslErr:Module:12(116:176); file:external/boringssl/src/crypto/asn1/asn1_lib.c ;Line:186;Function:ASN1_get_object
            D/OpenSSLLib(29222): OpensslErr:Module:12(116:176); file:external/boringssl/src/crypto/asn1/asn1_lib.c ;Line:186;Function:ASN1_get_object
            W/flutter (29222): onAdFailedToLoad: 3
            I/Ads     (29222): Ad failed to load : 3
            I/flutter (29222): BannerAd MobileAdEvent.failedToLoad
            D/SQLiteDatabase(29222): beginTransaction()
            D/SQLiteDatabase(29222): endTransaction()
            D/SQLiteDatabase(29222): beginTransaction()
            D/SQLiteDatabase(29222): endTransaction()
            D/WebView (29222): evaluateJavascript=(function(){})()
            D/WebView (29222): evaluateJavascript=google.afma.config.fetchAppSettings({"id":"1728bed4-cfbf-449f-a186-a71cd6e27ce4","args":{"app_id":"APP_ID","is_init":true,"pn":"sagarrawatuk.fotoApp"}});
D/ActivityThread(29222):持有者:android.app.IActivityManager$ContentProviderHolder@c4e7070,holder.provider:android.content。ContentProviderProxy@a482fe9
D/DynamicPackage(29222):实例化com.google.android.gms.ads.ChimeraMobileAdsSettingManagerCreatorImpl
I/WebViewFactory(29222):加载com.google.android.webview版本86.0.4240.110(代码424011000)
W/ResourceType(29222):找到多个库表,忽略。。。
I/System(29222):finalizerDamon:finalize objects=289
D/WebView(29222):WebView
I/cr_LibraryLoader(29222):加载的本机库版本号“86.0.4240.110”
I/cr_CachingUmaRecorder(29222):从5个直方图中冲洗5个样本。
E/chromium(29222):[错误:filesystem_posix.cc(62)]mkdir/data/user/0/sagarrawatuk.fotoApp/cache/WebView/Crashpad:没有这样的文件或目录(2)
D/ConnectivityManager.CallbackHandler(29222):CM回调处理程序得到消息524290
D/WebView(29222):addJavascriptInterface=googleAdsJsInterface
D/WebView(29222):removeJavascriptInterface=accessibility
D/WebView(29222):removeJavascriptInterface=accessibilityTraversal
D/WebView(29222):加载URL=https://googleads.g.doubleclick.net/mads/static/mad/sdk/native/production/sdk-core-v40-impl.html
W/cr_媒体(29222):需要蓝牙许可
V/设置接口(29222):无效[安全]:当前2!=缓存的0
E/libEGL(29222):验证显示:255错误3008(EGL\u错误显示)
D/ActivityThread(29222):持有者:android.app.IActivityManager$ContentProviderHolder@90636e7,holder.provider:android.content。ContentProviderProxy@a09f294
D/DynamicPackage(29222):实例化com.google.android.gms.ads.ChimeraAdManagerCreatorImpl
D/SettingsInterface(29222):从设置缓存,名称=android\u id,值=e6623267e10d401e
I/Ads(29222):使用RequestConfiguration.Builder().SetTestDeviceID(Arrays.asList(“0D97118CC9A4746D5FDA6A253D5479F1”)获取此设备上的测试Ads。
D/MPlugin(29222):createInstance():Begin=485050486
             D/ActivityThread(29222): holder:android.app.IActivityManager$ContentProviderHolder@c4e7070, holder.provider:android.content.ContentProviderProxy@a482fe9
            D/DynamitePackage(29222): Instantiating com.google.android.gms.ads.ChimeraMobileAdsSettingManagerCreatorImpl
            I/WebViewFactory(29222): Loading com.google.android.webview version 86.0.4240.110 (code 424011000)
            W/ResourceType(29222): Found multiple library tables, ignoring...
            I/System  (29222): FinalizerDaemon: finalize objects = 289
            D/WebView (29222): WebView<init>
            I/cr_LibraryLoader(29222): Loaded native library version number "86.0.4240.110"
            I/cr_CachingUmaRecorder(29222): Flushed 5 samples from 5 histograms.
            E/chromium(29222): [ERROR:filesystem_posix.cc(62)] mkdir /data/user/0/sagarrawatuk.fotoApp/cache/WebView/Crashpad: No such file or directory (2)
            D/ConnectivityManager.CallbackHandler(29222): CM callback handler got msg 524290
            D/WebView (29222): addJavascriptInterface=googleAdsJsInterface
            D/WebView (29222): removeJavascriptInterface=accessibility
            D/WebView (29222): removeJavascriptInterface=accessibilityTraversal
            D/WebView (29222): loadUrl=https://googleads.g.doubleclick.net/mads/static/mad/sdk/native/production/sdk-core-v40-impl.html
            W/cr_media(29222): Requires BLUETOOTH permission
            V/SettingsInterface(29222): invalidate [secure]: current 2 != cached 0
            E/libEGL  (29222): validate_display:255 error 3008 (EGL_BAD_DISPLAY)
            D/ActivityThread(29222): holder:android.app.IActivityManager$ContentProviderHolder@90636e7, holder.provider:android.content.ContentProviderProxy@a09f294
            D/DynamitePackage(29222): Instantiating com.google.android.gms.ads.ChimeraAdManagerCreatorImpl
            D/SettingsInterface(29222):  from settings cache , name = android_id , value = e6623267e10d401e
            I/Ads     (29222): Use RequestConfiguration.Builder().setTestDeviceIds(Arrays.asList("0D97118CC9A4746D5FDA6A253D5479F1") to get test ads on this device.
            D/MPlugin (29222): createInstance(): Begin = 485050486
            D/MPlugin (29222): create Instance (two parameters) with : com.mediatek.common.telephony.IOnlyOwnerSimSupport
            D/MPlugin (29222): Clazz exists on mapping table : false
            E/MPlugin (29222): Unsupported class: com.mediatek.common.telephony.IOnlyOwnerSimSupport
            D/MPlugin (29222): createInstance(): End = 485050486
            I/DynamiteModule(29222): Considering local module com.google.android.gms.ads.dynamite:0 and remote module com.google.android.gms.ads.dynamite:203404601
            I/DynamiteModule(29222): Selected remote version of com.google.android.gms.ads.dynamite, version >= 203404601
            D/SettingsInterface(29222):  from settings cache , name = accessibility_captioning_enabled , value = 0
            D/SettingsInterface(29222):  from settings cache , name = accessibility_captioning_font_scale , value = null
            D/SettingsInterface(29222):  from settings cache , name = accessibility_captioning_locale , value = null
            D/SettingsInterface(29222):  from settings cache , name = accessibility_captioning_preset , value = null
            D/libc-netbsd(29222): [getaddrinfo]: hostname=googleads.g.doubleclick.net; servname=(null); netid=0; mark=0
            D/libc-netbsd(29222): [getaddrinfo]: ai_addrlen=0; ai_canonname=(null); ai_flags=1024; ai_family=0
            W/Ads     (29222): Not retrying to fetch app settings
            D/libc-netbsd(29222): getaddrinfo: googleads.g.doubleclick.net get result from proxy gai_error = 0
            D/SettingsInterface(29222):  from settings cache , name = accessibility_captioning_enabled , value = 0
            D/SettingsInterface(29222):  from settings cache , name = accessibility_captioning_font_scale , value = null
            D/SettingsInterface(29222):  from settings cache , name = accessibility_captioning_locale , value = null
            D/SettingsInterface(29222):  from settings cache , name = accessibility_captioning_preset , value = null
            D/libc-netbsd(29222): [getaddrinfo]: hostname=googleads.g.doubleclick.net; servname=(null); netid=0; mark=0
            D/libc-netbsd(29222): [getaddrinfo]: ai_addrlen=0; ai_canonname=(null); ai_flags=1024; ai_family=0
            W/Ads     (29222): Not retrying to fetch app settings
            D/libc-netbsd(29222): getaddrinfo: googleads.g.doubleclick.net get result from proxy gai_error = 0
            D/OpenSSLLib(29222): OpensslErr:Module:12(116:176); file:external/boringssl/src/crypto/asn1/asn1_lib.c ;Line:186;Function:ASN1_get_object
            D/OpenSSLLib(29222): OpensslErr:Module:12(116:176); file:external/boringssl/src/crypto/asn1/asn1_lib.c ;Line:186;Function:ASN1_get_object
            W/flutter (29222): onAdFailedToLoad: 3
            I/Ads     (29222): Ad failed to load : 3
            I/flutter (29222): BannerAd MobileAdEvent.failedToLoad
            D/SQLiteDatabase(29222): beginTransaction()
            D/SQLiteDatabase(29222): endTransaction()
            D/SQLiteDatabase(29222): beginTransaction()
            D/SQLiteDatabase(29222): endTransaction()
            D/WebView (29222): evaluateJavascript=(function(){})()
            D/WebView (29222): evaluateJavascript=google.afma.config.fetchAppSettings({"id":"1728bed4-cfbf-449f-a186-a71cd6e27ce4","args":{"app_id":"APP_ID","is_init":true,"pn":"sagarrawatuk.fotoApp"}});