GAM Module - React Native
Installing the Package
npm
npm i --save @wscsports/blaze-rtn-gam-adsyarn
yarn add @wscsports/blaze-rtn-gam-adsClassic ReactNative Setup
iOS
Set your Ad Manager app ID in your app. Follow the step in iOS Ad Manager setup.
Android
Set your Ad Manager app ID in your app. Follow the step in Android Ad Manager setup.
Expo Setup
Along with the SDK's Expo plugin setup, ads in Expo need a plugin that adds the Ad Manager app IDs to the native files described above. To do this, use Expo's configuration params for both platforms.
Here is example for the result app.json file:
{
"expo": {
...
"ios": {
...
"config": {
"googleMobileAdsAppId": "ca-app-pub-xxxxxxxx~xxxxxxxx"
}
},
"android": {
...
"config": {
"googleMobileAdsAppId": "ca-app-pub-xxxxxxxx~xxxxxxxx"
}
},
...
}
Usage
For the usage please read more on this section.
Updated 23 days ago
Did this page help you?
