Closed bastienlandry1 closed 1 year ago
Hi, make sure your ad has loaded before you show the ad to user. For example, if user presses button before the ad loads, just don't show the ad and continue app's next behavior. Or, take enough time before user can call a action that shows an ad.
Hi, In fact, no matter how long I wait, the ad does not load. Since it works fine on iOS simulator and Android, I don't understand the issue.
Then check if the ad loading has failed. It could be the case.
@bastienlandry1 did you solve this ? i am have the same problem
@leo0grau no; the issue is still there
Hello 👋, to help manage issues we automatically close stale issues.
This issue has been automatically marked as stale because it has not had activity for quite some time.Has this issue been fixed, or does it still require attention?
This issue will be closed in 15 days if no further activity occurs.
Thank you for your contributions.
Issue
I am trying to setup an interstitial Ad on iOS. I am using
ca-app-pub-3940256099942544/4411468910
for development and it works fine, both on simulator and real device. [ I am using an iPhone SE, iOS 15.0.2 to test].When I am using the ad Unit Id from apps.admob.com website, it works fine on the simulator but it crashes on the real device. The error message is the following:
[Error: InterstitialAd.show() The requested InterstitialAd has not loaded and could not be shown.]
I tried to trigger manually the load and the show methods, but the ad did not load. I tried to use hooks, following the guide https://docs.page/invertase/react-native-google-mobile-ads/displaying-ads-hook, but I still couldn't succeed.
Notes:
Project Files
Javascript
ad.js
:package.json
: