B4A Library Admob Interstitial Library

Rorry

Member
Licensed User
Longtime User
Great. I know already wich one it is. because mwAdmobInterstitial use GoogleAdMobAdsSdk-6.4.1.jar and the admob wrapper for b4a use GoogleAdMobAdsSdk.jar and i have the both in my library folder... to me,mwAdmobInterstitial.jar & admob.jar should call the same GoogleAdMobAdsSdk 6.4.1 jar file (i mean with the same filename)
 

FJS

Active Member
Licensed User
Longtime User
Fantastic Erel, Thank you very much. I had the same problem, and thanks to your aswer, I did it!
 

FJS

Active Member
Licensed User
Longtime User
Hello!

It works right, but have a question. If with
"mwAdInterstitial.Show"
the add will show
How Can I not show the add, after 4seconds for example??

thank you in advanced
 
Last edited:

icebold

Member
Licensed User
Longtime User
Hi guys,
compiling the example program for this lib I got the following error:
referenced library is missing: googleadmobadssdk-6.4.1

I finally SOLVED this issue after changing my ADDITIONAL LIBRARIES PATH with a new path that doesn't include SPACES.

This method can also help people ( like me ) that can experience the following error compiling programs on windows 8.x pc:
Path contains illegal characters. Please install Basic4android in a path without spaces.
as discussed here : http://www.b4x.com/android/forum/threads/illegal-path.10866/#post60657

This lib works well, it's a good job.
Thanks again to Jack Cole!
 

holdemadvantage

Active Member
Licensed User
Longtime User
Hi Jack, thanks for your library!
I create a new Admob id forInterstitial and i run your code getting this message: "
Ad request successful, but no ad returned due to lack of ad inventory." is it normal?
---------------
Fixed: i got this message in emulator but it works on device
 
Last edited:

Magma

Expert
Licensed User
Longtime User
Hi there... this is what i am looking for...

1)as i know google ads will stop support the old version admob at august 2014... then what ?

2)Also can not show ads... :-(

errors:


B4X:
Request scenario: Online server request.
Can't get the viewWidth after the first layout
GC_CONCURRENT freed 386K, 50% free 3206K/6343K, external 438K/694K, paused 5ms+5ms


Can't get the viewWidth after the first layout


nativeDestroy view: 0x3179f8


onReceiveAd()


Failed to find provider info for com.google.plus.platform
To get test ads on this device, call adRequest.addTestDevice("F26402E054047E04BDD6F1689866FC4E");
adRequestUrlHtml: <html><head><script src="http://media.admob.com/sdk-core-v40.js"></script><script>blah blah blah....</script></head><body></body></html>


Received ad url: <url: "http://googleads.g.doubleclick.net:80/mads/gma?preqs=13&session_id=blah blah blah...&askip=3&gsb=wi&caps=interactiveVideo_th_autoplay_mediation_sdkAdmobApiForAds_di&jsv=71&urll=907" type: "admob" afmaNotifyDt: "null" activationOverlayUrl: "null" useWebViewLoadUrl: "false">

Thanks in advanced...
 
Last edited:

Magma

Expert
Licensed User
Longtime User
@Erel thought was different posts (mwad interestrial - with admob)... The true is working on project that going to end and need help to 3-5 things more.. (but as you can see are different... sound / ads / interestrial ad etc) - I know and i can understand that members of forum can not only read my problems... sorry and i hope some day i will help other members (that means forum for me).

@Jack Cole --->

1) old version of admob website ? hmmm sorry can;t understand... the admob site i am using is this:



You mean go down of all these Countries and sign up again?

Only that ? That cannot be done because i am in Greece and have other countries


after that screen: seems to be new... https://apps.admob.com/#home ....

And the strange is that i can view statistics and seems that ads showing (but never seen it at my device 2.3 android zte racer / ics - never seen it at emulator too) - ofcourse nevered click because i didn;t see it - and gives error at debugger.

a. .....may be needs app to be linked first ?????? - because i didn't upload it yet to google play....????????? is it a problem that ????

2) at august 2014... then what - you library will continue working with the same jar file (6.4.1) - or i must make something else ?
 
Last edited:

Jack Cole

Well-Known Member
Licensed User
Longtime User
I recommend you download the example app in the original post and insert your IDs into the appropriate places in the code. You must be transferred over to apps.admob.com and set up an ad unit for interstitials as discussed earlier in the thread. I will update the library at some point to support the latest SDKs. I'm not seeing any message about something being discontinued in 8/2014. Where are you seeing that?
 

Magma

Expert
Licensed User
Longtime User
at this page:
https://developers.google.com/mobile-ads-sdk/download?hl=el#downloadandroid

Select the tab for your platform: Google Mobile Ads SDK v6.4.1

Deprecated. On August 1, 2014, Google Play will stop accepting new or updated apps that use the old standalone Google Mobile Ads SDK v6.4.1 or lower. You must upgrade to the Google Play version of the Mobile Ads SDK by then.

~~~~~~~~~~~~~~~~~~~~~~

FOUND the error... was two times .Loadad .... not showing.... with ".Show" !


~~~~~~~~~~~~~~~~~~~~~~

Thanks answering to me !
 
Last edited:
Cookies are required to use this site. You must accept them to continue using the site. Learn more…