B4A Library MoPub Ad Server Library (Updated to v4.6.1 , 29 May 2016) - 20+ ad networks (AdMob , etc.)

mopub_logo.png

Library (Updated to v4.6.1 , 29 May 2016)
MoPub Official Website
Google Play Policies
MoPub is the world largest mobile ad server (mediation platform) and RTB exchange (MoPub marketplace). Now it belongs to Twitter. It is the main competitor to AdMob , but MoPub primary focus is mediation of ads. The following ad networks work just right out of the box:
MoPubLibVer.png

support.PNG
All networks are tested and use official java code of these networks.
AdColony can use only interstitial or rewarded video, if you will use both in your project - it will not work.
Tapjoy - please test, integration is rather complicated, so for now I didn't test it myself, but normally it should work.
Native ads are not supported for now.
Note: I advise you to use logcat logs in B4A (without filter checked) or this standalone utility to see all error codes and a lot of additional info about loading your ads.

Please vote for ad network you want to see in MoPub Library


ChangeLog:
v4.6.1 29.05.2016
v4.2 30.11.2015

Updated:
MoPub SDK v4.2 (Nov 30,2015)
All ad networks SDK's and code
Syntax of using library is changed a little
Added:
Rewarded video ads
Amazon ads
Tapjoy
Unity ads

v2.3 22.07.2014
Updated:
MoPub SDK v2.3 (Jul 17, 2014)
All ad networks SDKs
Added:
mNectar
MobileCore
Facebook
AdColony
Vungle
StartApp
Leadbolt

v2.1 02.12.2013
Added:
AppLovin (banners and interstitials)
Greystripe (banners and interstitials)
Chartboost (interstitials)

v2.0 28.11.2013
Added :
Banners and interstitials listeners
Interstitials' preload - now all works really fast
Integrated AppBrain and TapForTap
(both banners and interstitials)
Updated:
MoPub SDK v1.17 (Nov 20, 2013)
Appbrain SDK v9.2
TapForTap SDK v3.0.7
Fixed:
Interstitial's close button
Almost totally rewrited library

v1.1 16.06.2013
Added:
Interstitial ads

Roadmap:
Add support for Madvertise , RevMob , AppNext , Inneractive , TapContext , Amazon Ads , Flurry , MobPartner , MDotm
Note: possibly to make wrapper for MobFox as alternative to MoPub , because as from May 14, 2014 their SDK supports custom events to integrate other networks SDK , also maybe wrapper for mAdserve as self-hosting solution for mediating ads.


Tags: MoPub , MobFox , Mojiva , Lifestreet media , Hunt mobile ads , Tapit , AdMob , Millennial Media , Inmobi , Chartboost , Greystripe , AppBrain , TapForTap , MobileCore , AppLovin , Leadbolt , Facebook , AdColony , Vungle , StartApp , mNectar , Ad Network Library

Links:
MoPub B4A v4.6.1 update (Updated 29 May 2016)
MoPub B4A Library v4.2 Additional SDK's (Updated 30 November 2015)
I have included demo project with all listener methodes. You can compile that project with default id's to test ads.
Also I have written detailed but simple as possible guide to integrate all of the networks and general help how to use MoPub.
Soon I will update guide and published it, for now please see demo project.

Good luck !
Regards
John


 

Attachments

  • MoPub B4A Library v4.2.zip
    451.5 KB · Views: 563
Last edited:

susu

Well-Known Member
Licensed User
Longtime User
Thank you John!
 

MaxApps

Active Member
Licensed User
Longtime User
I can only get their demo ads to run. Admob ads are not showing

Kind regards
Jakob
 

Johnmcenroy

Active Member
Licensed User
Longtime User
Sorry MaxApps , seems that only Admob doesn't work for now. I will look into this issue. What I have tested for now - Leadbolt HTML ads , MobFox , Inmobi , Everbadge direct offers , Millennial Media , Tapit , Everbadge Interstitials , MoPub banners and interstitials, TapForTap banners , AppBrain Wall and banners. For TapForTap and Appbrain support I will release a new version soon.
 
Last edited:

MaxApps

Active Member
Licensed User
Longtime User
Interstitials are not working.
When you dismiss the ad (tap the [X]) the screen just goes black. You will have to tap the back button, to get rid of the ad.

Kind regards
Jakob
 

deltacode

Member
Licensed User
Longtime User
In java i can add:
adView.setOnAdFailedListener(new OnAdFailedListener() {
public void OnAdFailed(MoPubView mpv)

Can this be done using this Library to check if an Ad did not load ?
 
Last edited:

Johnmcenroy

Active Member
Licensed User
Longtime User
I have updated MoPub library to 2.0 version. Interestitial's close button fixed and also added all listeners methodes. All SDK's have been updated to latest. Now there is full preload of interestitial so it shows immediately as you call it. I have tested a lot it and use myself in my apps. I have included demo project. Please test it.
 

MaxApps

Active Member
Licensed User
Longtime User
Hi

Can you give an example on how to use AppBrain and costum (native) networks.
I simply cannot figure out, how to set it up.

Kind regards
Jakob

Newer mind. Found a solution
 
Last edited:

Johnmcenroy

Active Member
Licensed User
Longtime User
This is a helpful library. Thank you for writing it.

Any chance you could add support for 300x250 ads, or share the source code so I could do it?

Best regards,
Jack

Hi Jack
300x250 must work as well.
I didn't tested it but library is written according to official MoPub guide so all formats must work.
Regards
 

susu

Well-Known Member
Licensed User
Longtime User
Hi John,

MoPub just updated SDK to v1.17.2. Do you plan to update your wrapper?
 
Top