Home / Phonegap / Banners / Integration

Banners

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.test(navigator.userAgent)) ? tappxSetting.android : tappxSetting.io
tappxphonegap.createBanner('position', tappxKey,
????function() {
//Success Callback
},
????function() {
//Error Callback
}
);

Parameters:

  1. Parameter: true or false. Show the Interstitial automatically.
  2. Parameter: string. TAPPX KEY.
  3. Success: Method that is called if the creation and ad load succeed.
  4. Error : Method that is called if an error occurs during the creation or ad load.