Page 4 of 6

AdMob ads to Appery app!?

Posted: Wed May 07, 2014 12:22 pm
by antonback89

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 =(


AdMob ads to Appery app!?

Posted: Wed May 07, 2014 12:59 pm
by Evgene Karachevtsev

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


AdMob ads to Appery app!?

Posted: Wed May 07, 2014 5:02 pm
by antonback89

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


AdMob ads to Appery app!?

Posted: Thu May 08, 2014 6:05 am
by Evgene Karachevtsev

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.


AdMob ads to Appery app!?

Posted: Thu May 08, 2014 8:27 pm
by antonback89

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! =)


AdMob ads to Appery app!?

Posted: Fri May 09, 2014 6:29 pm
by Kateryna Grynko

Hi Anton,

Could you please show what you tried?


AdMob ads to Appery app!?

Posted: Fri May 09, 2014 7:23 pm
by antonback89

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!


AdMob ads to Appery app!?

Posted: Fri May 09, 2014 7:34 pm
by Kateryna Grynko

AdMob ads to Appery app!?

Posted: Fri May 09, 2014 8:23 pm
by antonback89

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


AdMob ads to Appery app!?

Posted: Sat May 10, 2014 7:22 pm
by antonback89

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?