Created
April 16, 2015 08:01
-
-
Save rajubd49/f208bca489fb56444f19 to your computer and use it in GitHub Desktop.
AdMob Check-if received or not - Appcelerator Titanium
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var Admob = require('ti.admob'); | |
var adMobView = Admob.createAdMobView({ | |
publisherId: "<<YOUR PUBLISHER ID HERE>>", | |
testing:false, // default is false | |
top: 0, //optional | |
left: 0, // optional | |
right: 0, // optional | |
bottom: 0, // optional | |
adBackgroundColor:"FF8800", // optional | |
backgroundColorTop: "738000", //optional - Gradient background color at top | |
borderColor: "#000000", // optional - Border color | |
textColor: "#000000", // optional - Text color | |
urlColor: "#00FF00", // optional - URL color | |
linkColor: "#0000FF", //optional - Link text color | |
primaryTextColor: "blue", // deprecated -- now maps to textColor | |
secondaryTextColor: "green" // deprecated -- now maps to linkColor | |
}); | |
adMobView.addEventListener(Admob.AD_RECEIVED,function(){ | |
Ti.API.info("adMob received"); | |
}); | |
adMobView.addEventListener(Admob.AD_NOT_RECEIVED,function(){ | |
Ti.API.info("adMob not received"); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment