Home / Phonegap / Interstitials/FullScreen / Integration

iOS Monetization+Cross

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:

  1. Parameter: true or false. Show the Interstitial 1. automatically.
  2. Parameter: string. TAPPX KEY.
  3. Success: Method that is called if the creation and ad 1. load succeed.
  4. 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{});