I am having troubles instancing/using this module.
I am getting the error: "Result of expression 'Ad.createAdMob' [undefined] is not a functino. at app.js (line 24)"
With this code:
// This is a test harness for your module
// You should do something interesting in this harness
// to test out the module and to provide instructions
// to users on how to use it by example.
// open a single window
var win = Ti.UI.createWindow({
backgroundColor: '#0000ff'
});
var Ad = require('jp.masuidrive.ti.admob');
var admob = Ad.createAdMob({
test: true,
publisher: "Your Publisher ID", // required
top: ( 460 - 48 ) / 2,
left: 0,
width: 320, // required
height: 48, // required
backgroundColor: "#ffffff",
adBackgroundColor: "#ffffff",
primaryTextColor: "#000000",
secondaryTextColor: "#000000",
refresh: 30.0
});
admob.addEventListener('error', function(error) {
alert(error.message);
win.remove(admob);
});
win.add(admob);
win.open();
Do you have any idea of what is happening?
I have cleaned the build folder, compiled many times in many different ways, but nothing solved the problem.
Hi guys,
I am having troubles instancing/using this module. I am getting the error: "Result of expression 'Ad.createAdMob' [undefined] is not a functino. at app.js (line 24)" With this code:
Do you have any idea of what is happening? I have cleaned the build folder, compiled many times in many different ways, but nothing solved the problem.
My best.