Web-app dev4, Google AdMob (Banner and Interstitial ads)
This writing is about how to apply Google AdMob into mobile application. I included Banner and Interstitial ads in my React Native Web-view application. * This is continued writing from previous one. 1. Register your application in AdMob First you should have AdMob account. Create one in: https://admob.google.com/home/ Set up new app in your AdMob account. AdMob account need some verification from Google and this will be done normally within few days. 2. React Native Banner ads For official document refer to: https://github.com/invertase/react-native-google-mobile-ads First run the command: npm i react-native-google-mobile-ads Check your app ID in AdMob. Go to your app - app setting, then you can see app ID as below. Put your app ID in app.json as below. The app ID should be out of "expo": {}. , "react-native-google-mobile-ads" : { "android_app_id" : "ca-app-pub-111111111~1111111111111" } In App.js, import components to...
Comments
Post a Comment