Need some help for Admob


#1

Hello,

I would like to add ads from admob, so I followed these steps :
Create a cordova project
Create android platform
Add : cordova plugin add cordova-plugin-admobpro
In my index.html file I load cordova.js and load this js code : https://github.com/floatinghotpot/cordova-admob-pro/blob/master/test/admob_simple.js

Then I zip my files and go to cocoon io :
create a project from zip, add plugins : admob native ads for android and compile for android.
I installed the apk on my device, the app runs good but the ads isn’t showing.

Did I forget something ?

Thanks


#2

Hi again,

I followed the AdMob documentation :
I add the line cordova.js and add on the onDeviceReady function :

var banner = Cocoon.Ad.AdMob.createBanner(“ca-app-pub-3940256099942544/6300978111”);

banner.on(“load”, function(){
console.log("Banner loaded " + banner.width, banner.height);
banner.show();
});

And from cocoon io I added the plugin “AdMob native Ads for Android”
also on cocoon io, I activated Admob on Ads > Android > Admob

Then I compile on webview+ and open the apk on my device, the app run goods but the ads still not appear.

Can anybody help me please…

Thank you!


#3

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.