Admob
This step isn't required to get up and running. Feel free to jump to run the app section
Setup account
- go to https://apps.admob.com/
- create a new app
- create a add unit (eg banner)
- grab app id and ad id
Configure Admob
iOS
- open
ios/App/App/Info.plist - replace the string value located right below the key
GADApplicationIdentifierto the app id obteined previously
Android
- open
android/app/src/main/AndroidManifest.xml - open
android/app/src/main/res/values/strings.xml - also add the app id to the
admob_app_idstring. it should look like
<string name="admob_app_id">YOUR_APPLICATION_ID</string>
Test Device
- on admob console go to
Settings > Test Devices - add test device
- enter a device name
- select platform
- add ID/IDFA. for iOS install the app
Find My IDFA, on Android devices you can find your advertising ID in your device settings. Navigate to Settings, click Google, and then Ads.
Client
- open
src/app/config/admob - paste add id to the variable
ADMOB_{PLATFORM}_{ADTYPE}_AD_ID. Repeat for each AD ID variable. - add your ID/IDFA to
ADMOB_TESTING_DEVICESarray
Notice: AD may take a few minutes to appear. Also keep in mind that your account must be approved by Admob team before showing ads for production.