iOS Monetization
Integration
Add the next lines in your “/www/js/index.js” of phonegap:
var tappxSetting = {
ios: 'YOUR IOS TAPPX KEY',
android: 'YOUR ANDROID TAPPX KEY'
}
var tappxKey = /(android)/i.t(navigator.userAgent)
? tappxSettiandroid
: tappxSetting.io
tappxphonegap.createInterstitial(
trutappxKey,
function () {
// Succes Callback
},
function () {
// Error Callback
}
)
Parameters:
- Parameter: true or false. Show the Interstitial 1. automatically.
- Parameter: string. TAPPX KEY.
- Success: Method that is called if the creation and ad 1. load succeed.
- Error : Method that is called if an error occurs during 1. the creation or ad load.
isReady: allows you to check if the ad is ready to be shown. You will receive a "true" if the ad is ready and a "false" if not.
tappxphonegap.isReady(function(msg) {function(err) {}))
showInterstitial: allows you to display the interstitial ad that was previously loaded.
tappxphonegap.showInterstitial(funct(msg){},function(err{});
Tappx © 2024