Closed Riyaz7364 closed 3 years ago
UnityBannerAd is a widget. It should be in the widget tree to be drawn on UI.
You can just put UnityBannerAd to the build method.
...
@override
Widget build(BuildContext context) {
return Container(
child: UnityBannerAd(
placementId: AdManager.bannerAdPlacementId,
listener: (state, args) {
print('Banner Listener: $state => $args');
},
),
);
}
...
See example for more details: https://pub.dev/packages/unity_ads_plugin/example
Display and banner ads are not showing in my flutter project but video and rewarded video ads are working. I'm not getting any error after calling me the method to show ads.