Follow

Appcelerator Android Plugin

Android Titanium module for TapIt!

Version 1.0

This is the Android Titanium module for TapIt! Mobile Advertising. Go to http://tapit.com/ for more details and to sign up.

 

Installation:

-Copy the module zip file “com.tapit-android-1.0.zip” into project  folder.

-Open file tiap.xml and add this line into tag <modules>

<module version="1.0">com.tapit</module>

-Copy folder res of TapIt Android SDK into folder Resources/android

Appcelerator1.png

Appcelerator2.png

 

 

-Use method require to load a Titanium module

var tapit = require('com.tapit');

 

Banner Usage

-Create a BannerView like any other view.
-Add this view to your window/view.
-Must pass the Zone ID as adzone.


var bannerView = tapit.createBannerView({

     adzone : '7527',

     width : Ti.UI.FILL,

     height : 120,

     top : 0,

     left : 0

});

 

win.add(bannerView);

 

AdPrompt Usage

-Just create an ad  view by calling method createAlertAd and then showAlertAd.
- Pass Zone id to method showAlertAd.

var ad = tapit.createAlertAd();

     ad.showAd('7527');

 

Interstitial Usage

-Just like AdPromt.

var ad = tapit.createInterstitialAd();

     ad.showAd('7527');

 

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.
Powered by Zendesk