GuidesAPI ReferenceRelease Notes
HomeLog InHome
Guides

GAM Module - React Native

Installing the Package

npm

npm i --save @wscsports/blaze-rtn-gam-ads

yarn

yarn add @wscsports/blaze-rtn-gam-ads

Classic 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.


Did this page help you?