-
Notifications
You must be signed in to change notification settings - Fork 127
Tappx configuration
appfeel edited this page Dec 23, 2014
·
13 revisions
Optionally, this plugin allows you to make requests to Tappx ads.
Tappx is a FREE ad exchange network that enables you to exchange impressions between community apps. You can configure how much traffic you divert to Tappx.
For example, to let the plugin request Tappx ads 80% of the available impressions, specify the following options:
function onDeviceReady() {
document.removeEventListener('deviceready', onDeviceReady, false);
// Set AdMobAds options:
admob.setOptions({
publisherId: "ca-app-pub-8440343014846849/3119840614", // Required
interstitialAdId: "ca-app-pub-8440343014846849/4596573817", // Optional
tappxIdiOs: "/120940746/Pub-2702-iOS-8226", // Optional
tappxIdAndroid: "/120940746/Pub-2700-Android-8171", // Optional
tappxShare: 0.8 // Optional
});
// Start showing banners (atomatic when autoShowBanner is set to true)
admob.createBannerView();
// Request interstitial (will present automatically when autoShowInterstitial is set to true)
admob.requestInterstitial();
}
document.addEventListener("deviceready", onDeviceReady, false);
If you don't specify tappxId, no tappx ad requests will be placed (even if you specify a tappxShare).