Closed quan2nd closed 1 year ago
🤔
https://github.com/invertase/react-native-google-mobile-ads/issues?q=is%3Aissue+reload
https://github.com/invertase/react-native-google-mobile-ads/issues/195
https://github.com/invertase/react-native-google-mobile-ads/pull/245
The library does not track time or need to reload for your, it simply does what you ask imperatively, so any related logic will be project-specific in your project code
@mikehardy It seems the reload function only works for interstitial and reward. I don't know how to use the Banner. I see google encourages Banner "can refresh automatically after a certain period of time." https://developers.google.com/admob/flutter/banner/get-started
Banner ads refresh every 30 / 60 seconds. You can leave that up to AdMob. But in case you want to force reload the banner you can just set a unique key on the banner.
<BannerAd key={key} unitId={TestIds.BANNER} size={BannerAdSize.ANCHORED_ADAPTIVE_BANNER} />
Then after some event happened:
setKey(Date.now())
Thank you. Your way solved my problem.
Documentation Feedback
Hello. I have 2 questions.