An event fired when the ad received Ad Manager specific app event.
The app event contains a name and data. data could be undefined.
name
data
import { GAMAdEventType } from 'react-native-google-mobile-ads';interstitialAd.addAdEventListener(GAMAdEventType.APP_EVENT, ({ name, data }) => { console.log(`Received app event: ${name} with data: ${data}`);}); Copy
import { GAMAdEventType } from 'react-native-google-mobile-ads';interstitialAd.addAdEventListener(GAMAdEventType.APP_EVENT, ({ name, data }) => { console.log(`Received app event: ${name} with data: ${data}`);});
An event fired when the ad received Ad Manager specific app event.
The app event contains a
nameanddata.datacould be undefined.Example