Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

AdMob ads to Appery app!?

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

HairulKhafiz
Posts: 0
Joined: Wed Jun 18, 2014 2:48 pm

AdMob ads to Appery app!?

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

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

AdMob ads to Appery app!?

Hello,

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

HairulKhafiz
Posts: 0
Joined: Wed Jun 18, 2014 2:48 pm

AdMob ads to Appery app!?

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

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

AdMob ads to Appery app!?

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/

Anand
Posts: 0
Joined: Mon Sep 07, 2015 11:05 pm

AdMob ads to Appery app!?

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

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

AdMob ads to Appery app!?

Anand,

Please find our reply in the email.

Fábio7931505
Posts: 0
Joined: Tue Dec 15, 2015 7:59 pm

AdMob ads to Appery app!?

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

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

AdMob ads to Appery app!?

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

Return to “Issues”