onGetAdInfo

Overview

Allows to access the loaded ad information by accessing the adInfo property of the loaded native or in-feed ad.

Note: To get ad info property of the fullscreen or rewarded view placement, please use getAdInfo function.

Data passed by the event

placementName

Unique name of the placement. The same name will be used in gravite.net account.

price

currencyCode

precision

Examples

import RNAatkit from '@addapptr/react-native-aatkit'
import { NativeEventEmitter, NativeModules } from 'react-native';
const aatkitEmitter = new NativeEventEmitter(RNAatkit);

const subscriptionOnGetAdInfo = aatkitEmitter.addListener(
	'onGetAdInfo',
	(data) => console.log("[onGetAdInfo] placementName: " + data.placementName + ", price: " + data.price + ", currencyCode: " + data.currencyCode + ", precision: " + data.precision)
);

Last updated