Skip to content

adpushup/ApReactKit

Repository files navigation

ap-react-kit

Ap React Kit is a React Native Module for ApAppKit. It currently supports Android Platform. It allows you to integrate AdPushup's AdX Ads into your apps.

Installation

npm install ap-react-kit

Configure your app

In your project-level build.gradle file (Located at : '/android/build.gradle'), include jitpack Maven Repository in allprojects section:

allprojects {
    repositories {
        maven { url 'https://www.jitpack.io' }
        // ...
    }
    // ...
}

Usage

import { pingAdLoaded, pingAdOpened, pingAdClosed, pingAdImpression } from "ap-react-kit";

// ...
onAdLoaded={ () => {
    pingAdLoaded(adUnitId);
    console.log('Ad Loaded');
}}
onAdOpened={ () => {
    pingAdOpened(adUnitId);
    console.log('Ad Opened');
}}
onAdClosed={ () => {
    pingAdClosed(adUnitId);
    console.log('Ad Closed');
}}
onAdImpression={ () => {
    pingAdClosed(adUnitId);
    console.log('Ad Impression Recorded');
}}
// ...

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT

About

No description, website, or topics provided.

Resources

License

Contributing

Stars

Watchers

Forks

Packages

 
 
 

Contributors