My AdListener is displaying some error lines in the code
150
final BannerAdListener listener = BannerAdListener(
onAdLoaded: (ad) {
print('ad loaded');
},
onAdFailedToLoad: (ad, error) {
ad.dispose();
},
);
You need to specify which ad format you're using at the function.
Author by
Joey
Updated on December 30, 2022Comments
-
Joey over 1 year
final AdListener listener = AdListener( onAdloaded: (ad) { print('ad loaded'); }, onAdFailedToLoad: (ad, error) { ad.dispose(); }, );
the adlistener on this code is not working