TiAdMob4iPhone is a project mainly written in OBJECTIVE-C and C, based on the View license.
AdMob module for Titanium Mobile iPhone
This is a AdMob integration module for Titanium Mobile iPhone.
var window = Ti.UI.createWindow({
backgroundColor: '#0000ff'
});
var Ad = require('jp.masuidrive.ti.admob');
var admob = Ad.createAdMob({
publisher: "Your Publisher ID", // required
top: 0,
left: 0,
width: 320, // required
height: 48, // required
adBackgroundColor: "#ffffff",
primaryTextColor: "#000000",
secondaryTextColor: "#000000",
refresh: 30.0
});
admob.addEventListener('error', function(error) {
alert(error.message);
window.remove(admob);
});
window.add(admob);
window.open();
Terminal
Run below command
python build.py && unzip jp.masuidrive.ti.admob-0.1.zip -d /Library/Application Support/Titanium/
Register your module with your application by editing tiapp.xml
and adding your module.
Example:
<modules>
<module version="0.1">jp.masuidrive.ti.admob</module>
</modules>
When you run your project, the compiler will know automatically compile in your module dependencies and copy appropriate image assets into the application.
MIT License
Copyright 2010 Yuichiro MASUI (masuidrive) http://masuidrive.com/ Twitter: @masuidrive_en