didCountImpression

Overview

Notifies that AATKit has counted an impression. To receive this event, make sure that you called setImpressionListener function first.

Data passed by the event

placementName

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

adNetwork

adNetworkName

bannerSize

mediationType

mediationTypeName

networkKey

price

currencyCode

precision

Examples

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

const subscription = aatkitEmitter.addListener(
  'didCountImpression',
    (data) => console.log("[Statistics Impression Listener] didCountImpression data:  " 
        + " placementName: "+ data.placementName 
        + " adNetwork: " + data.adNetwork 
        + " adNetworkName: " + data.adNetworkName 
        + " bannerSize: " + data.bannerSize 
        + " mediationType: " + data.mediationType 
        + " mediationTypeName: " + data.mediationTypeName 
        + " networkKey: " + data.networkKey
        + " currencyCode: " + data.currencyCode
        + " precision: " + data.precision 
        + " price: " + data.price)
);

Last updated