antonback89
Posts: 0
Joined: Mon Apr 14, 2014 7:17 pm

AdMob ads to Appery app!?

Sorry to disturbe!
I did as you say and i can export my .apk and i now have:

Start deviceReady Run Javascript:

window.admob.createBannerView (
{
'PublisherID': '[xxxxxxxxxxxxxx]',
'AdSize': admob.AD_SIZE.BANNER
},
successCallback,
failureCallback
);

I can now run my app and i don't get the "spinning wheel" anymore but no ad-banner is showing =(

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

AdMob ads to Appery app!?

What are the variables successCallback and failurCallback? Are they defined?

antonback89
Posts: 0
Joined: Mon Apr 14, 2014 7:17 pm

AdMob ads to Appery app!?

Do you have an example of what that could be?
Should it be a URL or what should it be? =(

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

AdMob ads to Appery app!?

Hello,

Take a look at this link: https://github.com/aliokan/cordova-pl... in function addBanner.
options, successCreateBannerView, errors are defined. Then createBannerView is invoked.

antonback89
Posts: 0
Joined: Mon Apr 14, 2014 7:17 pm

AdMob ads to Appery app!?

Thanks for the answer!
But i'll guess it's to complicated for me to do this!

I've tried and tried but i still cant understand how to get a banner ad in the footer of my app.
I'll guess i might be a little to newbie but it would have been great! =)

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

AdMob ads to Appery app!?

Hi Anton,

Could you please show what you tried?

antonback89
Posts: 0
Joined: Mon Apr 14, 2014 7:17 pm

AdMob ads to Appery app!?

Hey!

I tried to read and understand what the different codes do and i tried to write the code like they did here: https://github.com/aliokan/cordova-pl... to see what the successcallback and failurecallback did and i tried to copy a little bit of thoose codes but my app just runs as usual but no banner shows.

Is there any kind of example code for appyer.io users or so?
Do i need to change or specify the "AD_Size.Banner"?
Some places i see that the codes says "Unit ID" and some says "Publisher ID" i've created a app in admob and copying that ID i got there, is that the right one?

Feel like i can kill something to get this thing to work!
Would be so amazing!

antonback89
Posts: 0
Joined: Mon Apr 14, 2014 7:17 pm

AdMob ads to Appery app!?

ill take a look and hope that i can find the solution =)

antonback89
Posts: 0
Joined: Mon Apr 14, 2014 7:17 pm

AdMob ads to Appery app!?

Should i still use the:

window.admob.createBannerView (
{
'PublisherID': '[xxxxxxxxxxxx.......

and can i still use the things i did in your previous guid above?
Or should i use a different script?

Return to “Issues”