Did you have a chance to look at it? =)
Thanks!
Did you have a chance to look at it? =)
Thanks!
Hello!
Working on it at the moment. I will update.
Wow! thank you so much!
Fantastic support once again =)
Sorry for delay, but developsers have problem with resolving this issue. Someone will get back to you with update.
Hows ut going?
Hi Anton,
You can try, but it's not so easy.
Create hierarchy and upload file AdMobPlugin.js
http://www.screencast.com/t/V4x0VEQ0
replace last line of code with this:
pre
if (typeof module != 'undefined' && module.exports) {
module.exports = admob;
}
/pre
http://www.screencast.com/t/ZG0floH9zCY
Create hierarchy and upload file AdMobPlugin.java
http://www.screencast.com/t/he0LwnPO6IDV
Edit config.xml
http://www.screencast.com/t/nBqZMaG5czcP
Edit cardova_plugin.js
http://www.screencast.com/t/agra2wII
Create hierarchy and upload admob-6.4.1.jar
http://dl.google.com/googleadmobadssd...
unzip, find GoogleAdMobAdsSdk-6.4.1.jar, rename admob-6.4.1.jar and upload to project
http://www.screencast.com/t/NYa7SNzG4tfQ
6.Create text file admob-6.4.1.pom
with this content:
precode
<?xml version="1.0" encoding="UTF-8"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<groupId>com.google.ads</groupId>
<artifactId>admob</artifactId>
<version>6.4.1</version>
<description>POM was created from install:install-file</description>
</project>
/code/pre
and upload to project.
Add dependency to pom.xml
precode
<dependency>
<groupId>com.google.ads</groupId>
<artifactId>admob</artifactId>
<version>6.4.1</version>
</dependency>
/code/pre
http://www.screencast.com/t/YgQwXNCZLcPp
Now object admob is available as window.admob
Finally a clear guide of how to add admob plugin in a project appery. Excellent.
I run everything very carefully. I have not quite figured out yet how to invoke the new project using the plugin configured.
I added an event on the "Load" of the home page with the execution of a javascript with the following content.
window.admob.createBannerView (
{
'PublisherID': '[xxxxxxxxxxxxxx]',
'AdSize': admob.AD_SIZE.BANNER
},
successCallback,
failureCallback
);
When I go to the test page does not load.
Thanks for the valuable support
Hello Angelo,
Are there any errors in console? Please provide us them
In the console there is this error:
Uncaught TypeError: Can not read property 'createBannerView' of undefined StartScreen.js: 243
event.returnValue is deprecated. Please use the standard event.preventDefault () instead
Hello Angelo,
You should test your app on mobile device and don't use event "load".