테스트 ID
Admob 테스트 시 시뮬레이터에서 광고를 띄우려고 하면 광고가 노출되지 않는 걸 알 수 있다. 테스트 용도로는 테스트 ID 사용하도록 되어 있다.
Always test with test ads When building and testing your apps, make sure you use test ads rather than live, production ads. Failure to do so can lead to suspension of your account. The easiest way to load test ads is to use our dedicated test ad unit ID for Android banners: ca-app-pub-3940256099942544/6300978111 It's been specially configured to return test ads for every request, and you're free to use it in your own apps while coding, testing, and debugging. Just make sure you replace it with your own ad unit ID before publishing your app. For more information about how the Mobile Ads SDK's test ads work, see Test Ads.
APP ID : ca-app-pub-3940256099942544~3347511713 Unit ID : ca-app-pub-3940256099942544/6300978111
참고
- https://developers.google.com/admob/android/banner?hl=ko
- https://firebase.google.com/docs/admob/android/quick-start
- https://reactnativeseoul.org/t/admob/244
- https://dev-yakuza.github.io/ko/react-native/react-native-firebase-admob/