Skip to main content

Event props

All events are available through props. The following event are available on both Android and iOS:

onNativeAdLoaded​

This event returns a data object which contains all the ad related information incase you need it. Usually you wont need this because everything is loaded automatically in the views.

ValueDescriptionPlatform
headline:stringTitle of the native ad.All
tagline:stringDescription of the native ad.All
advertiser:stringAdvertiser of the native ad.All
price:stringIf the ad is for a paid app or service, price value.All
aspectRatio:numberAspect ratio of the Content loaded inside MediaView. You should use this to calculate the correct width and height of the MediaView.All
store:stringIf ad is for an app, then name of the store.All
icon:stringIcon / Logo url of the adveriser or the product advertised in ad.All
images:Array<Image>Array of image urls recieved with the ad. The Image object contains url,width and height of image.All
callToAction:stringcallToAction text value for the native ad.All
rating:numberIf ad is for an app, then its rating on the respective store.All
video:booleanif ad has video content or not.All

onAdFailedToLoad​

Called when ad has failed to load and returns reason due to which ad was not loaded.

onAdLoaded​

Called when ad has successfully loaded without any errors.

onAdOpened​

Called when ad is opened.

onAdClosed​

Called when ad is closed.

onAdLeftApplication​

Called when ad is loaded but user has left the application

onAdImpression​

User impression has been recorded

onAdClicked​

User has clicked on the ad.