Page 6 of 6

AdMob ads to Appery app!?

Posted: Thu Jun 19, 2014 8:51 am
by Evgene Karachevtsev

Hello,

You should choose target sdk version Android 3.2 for your build would be successful.
http://www.screencast.com/t/nFsKVtrfg
But because pom.xml and AndroidManifest.xml are already changed, these changes are not accepted. So you should delete these two files and restore them as it is shown here
http://devcenter.appery.io/tutorials/...
After that you should repeat step 7 and add in AndroidManifest.xml

code<activity android:name="com&#46;google&#46;ads&#46;AdActivity" android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize"/>/code

After that your project should work


AdMob ads to Appery app!?

Posted: Tue Jun 24, 2014 6:45 am
by HairulKhafiz

Hi,

Thanks, I can compile it now but the ads aren't showing. Read from somewhere that it takes a while before the ads load, but is there anyway to see if its calling the API in the backend?

Thanks,
Hairul


AdMob ads to Appery app!?

Posted: Tue Jun 24, 2014 4:35 pm
by Evgene Karachevtsev

Hello,

Please clarify, is banner appear? All available API, you can find in this plugin:
https://github.com/aliokan/cordova-pl...


AdMob ads to Appery app!?

Posted: Tue Jun 24, 2014 5:15 pm
by HairulKhafiz

There is no banner appearing and the Javascript (above) returns success for both call. I will look through the API again and see if there is anything missing. Thanks.

Image


AdMob ads to Appery app!?

Posted: Tue Jun 24, 2014 5:49 pm
by Evgene Karachevtsev

Hairul,

If the application is running, and you can see all success callbacks, then it is likely that everything is done right. You should contact adMob help center: https://support.google.com/admob/v2/


AdMob ads to Appery app!?

Posted: Thu Sep 10, 2015 8:51 am
by Anand

Hi,

I'm trying to add hipmob plugin which has a java file. I have followed detailed steps mentioned by Illya Stepanov above. Getting following error on building .apk file. Any suggestions?

Build error

Most likely build error cause:

An error has occurred.

Please try again.
You can also email us a href="mailto:support@appery.io" rel="nofollow"support@appery.io/a and tell us about this problem


AdMob ads to Appery app!?

Posted: Thu Sep 10, 2015 12:55 pm
by Evgene Karachevtsev

Anand,

Please find our reply in the email.


AdMob ads to Appery app!?

Posted: Tue Dec 15, 2015 7:59 pm
by Fábio7931505

Hello, follows all the steps and put this code on the button

var successCreateBannerView = function() { alert("addBanner Success");
window.admob.requestAd({'isTesting': true},success,error); };
var success = function() { alert("requestAd Success"); };
var error = function(message) { alert("Oopsie! " + message); };
var options = {
'publisherId': 'ca-app-pub-3940256099942544/6300978111',
'adSize': 'BANNER'
};
window.admob.createBannerView(options,successCreateBannerView,error);

but it is displaying this message

Uncaught TypeError: Cannot read property 'createBannerView' of undefined

Does anyone know how to solve?
Thank you so much


AdMob ads to Appery app!?

Posted: Thu Dec 17, 2015 7:35 pm
by Serhii Kulibaba

It seems like you didn't add JS file with createBannerView to the app. Please add it with Create new-JavaScript