English 中文(简体)
抖动: Ad 无法装入: 1
原标题:Flutter: Ad failed to load : 1
I am using the google_mobile_ads package. And it is showing me this error. I am trying to user rewarded video test ads. And they are not loading. Use RequestConfiguration.Builder().setTestDeviceIds(Arrays.asList("7D77F0F7912B63850A1FB8986F58DE38") to get test ads on this device. Not retrying to fetch app settings
问题回答
You need to add the device you are using to the list of test devices to get test ads on it: await MobileAds.instance.initialize(); Add this after initialization: MobileAds.instance.updateRequestConfiguration( RequestConfiguration( tagForChildDirectedTreatment: TagForChildDirectedTreatment.unspecified, testDeviceIds: [ "7D77F0F7912B63850A1FB8986F58DE38", ], ), );
Add these lines: List testDeviceIds = [ YOUR DEVICE ID ]; RequestConfiguration configuration = RequestConfiguration(testDeviceIds: testDeviceIds); await MobileAds.instance.updateRequestConfiguration(configuration); make sure to use await since it s an async function Getting the device id: Simply run your app and request the rewarded ad. You will get some errors in the log, search for this line. The highlighted part is your device id you can add: RequestConfiguration.Builder().setTestDeviceIds(Arrays.asList("**289234E6**")




相关问题
How to show AdMob ads in real iPhone device?

I want to integrate AdMob ads in my iPhone app. I m using IB way to add the view and follow AdMob s pdf guide: 1. Add AdMob group(AdMobView.h,AdMobDelegateProtocol.h,libAdMob.a) 2. Add required ...

adding admob widget

i cant seem to figure out how to add the admob widget into my application. i want to add the widget to a linearlayout that is the child of a relative layout. the linerlayout was created just for the ...

AdMob SDK for iPad?

Trying to get my Universal app released and I rely on AdMob ads for revenue in this particular app. I m having an issue getting AdMob support working, though I keep finding references to people ...

Advertising API for Java ME applications?

I know AdMob is not for Java ME. Do you know any other advertising API or services that can be used in Java ME application? It might be really good if I can earn some money with my free Java ME ...

Admob in iPhone with Tabbar and TableView

I m having tab bar with 5 buttons. Out of 5 tabs, 2 are table views which uses navigation controller for showing sub views on click of cell. Above the tab bar, in each view I left some space for ads ...

What is correct xmlns url for AdMob in Android Layout XML

I am testing the AdMob for Android SDK. I can t set the admob:testing="true" because the admob attribute is unknown. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" ...

热门标签