bdlukaa / native_admob_flutter

Easy-to-make native ads in flutter using AdMOB SDK.
https://pub.dev/packages/native_admob_flutter
BSD 3-Clause "New" or "Revised" License
81 stars 57 forks source link

Use RequestContiguration.Builder().setTestDeviceIds() to get test ads on this device. #100

Closed EternalYouth29 closed 3 years ago

EternalYouth29 commented 3 years ago

Test ads were working well, but last night I started getting this log message,

Ad failed to load : 3
I/Ads     ( 5394): Use RequestConfiguration.Builder().setTestDeviceIds(Arrays.asList("4EA173......27")) to get test ads on this device.

Cant get any test ads (both NativeAds and BannerAds) since then. So far this happens only on Android.

EternalYouth29 commented 3 years ago

This issue disappeared automatically, weird.

bdlukaa commented 3 years ago

You can set the test device id using MobileAds.setTestDeviceIds(['4EA173......27'])

https://github.com/bdlukaa/native_admob_flutter/wiki/Initialize#add-your-test-device-programmatically

EternalYouth29 commented 3 years ago

You can set the test device id using MobileAds.setTestDeviceIds(['4EA173......27'])

https://github.com/bdlukaa/native_admob_flutter/wiki/Initialize#add-your-test-device-programmatically

Thanks for the guidance. I have added so but this issue happens again. I am getting Ad failed to load : 3 error message.
But on iOS everything is working fine, it only happens on Android. And It has been a week.

The implementation of the code should be correct as my previous Android release version on Play Store is working fine. But now without the test ads I am not able to modify the ads layout😥

update : I tried to remove kDebugMode and use real ads id, the ads show up.

desmeit commented 3 years ago

Where can I find the device id of my Android phone?