AdMob mediating MoPub - not getting ads from MoPub

admob

#1

I am trying to mediate MoPub using AdMob’s mediation, and so far I’ve been unsuccessfull…
First of all, I need to make my project using only jar files for the libraries, because the code is for a GameMaker extension.
Let me first explain what I am doing, here is the libraries I have:

Here is how I set up MoPub:

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);

  AppBrain.init(this);
  MMSDK.initialize(this);
  MillennialAdapterExtras millennialExtras = new MillennialAdapterExtras();
  InMobiAdapterExtras inmobiExtras = new InMobiAdapterExtras();
  MoPubExtras mopubExtras = new MoPubExtras();
  FlurryAgent.init(this, "4B3S2XK85HRM2Q63GR8H");
  FlurryAdapterExtras flurryExtras = new FlurryAdapterExtras();
  FlurryAgent.setLogEnabled(true); 
  FlurryAgent.setLogLevel(Log.VERBOSE);
  AdView mAdView = (AdView) findViewById(R.id.adView);
  AdRequest adRequest = new AdRequest.Builder()
  		//.addTestDevice("600447FDC2D619692F94F848E532BAC3")
  		.addNetworkExtras(flurryExtras)
  		.addNetworkExtras(millennialExtras)
  		.addNetworkExtras(inmobiExtras)
  		.addNetworkExtras(mopubExtras)
  		.build();
  mAdView.loadAd(adRequest);

}

And here is the LogCat output:

05-15 10:09:46.982: I/Ads(16412): No fill from any mediation ad networks.
05-15 10:09:46.994: I/Ads(16412): Scheduling ad refresh 60000 milliseconds from now.
05-15 10:09:46.994: W/Ads(16412): Failed to load ad: 3
05-15 10:10:47.017: I/Ads(16412): Starting ad request.
05-15 10:10:47.017: I/Ads(16412): Use AdRequest.Builder.addTestDevice(“173230171DD16042118D1A86C149DC58”) to get test ads on this device.
05-15 10:10:47.021: I/Ads(16412): CsiReporterFactory: CSI is not enabled. No CSI reporter created.
05-15 10:10:47.181: I/chromium(16412): [INFO:CONSOLE(0)] “Document was loaded from Application Cache with manifest https://googleads.g.doubleclick.net/mads/static/mad/sdk/native/sdk-core-v40.appcache”, source: https://googleads.g.doubleclick.net/mads/static/mad/sdk/native/sdk-core-v40.html (0)
05-15 10:10:47.181: I/chromium(16412): [INFO:CONSOLE(0)] “Application Cache Checking event”, source: https://googleads.g.doubleclick.net/mads/static/mad/sdk/native/sdk-core-v40.html (0)
05-15 10:10:47.237: I/chromium(16412): [INFO:CONSOLE(0)] “Application Cache NoUpdate event”, source: https://googleads.g.doubleclick.net/mads/static/mad/sdk/native/sdk-core-v40.html (0)
05-15 10:10:47.313: D/dalvikvm(16412): GC_FOR_ALLOC freed 1373K, 21% free 7514K/9488K, paused 3ms, total 3ms
05-15 10:10:47.465: I/Ads(16412): Trying mediation network: 10872986198578383917
05-15 10:10:47.473: I/Ads(16412): Instantiating mediation adapter: com.mopub.mobileads.dfp.adapters.MoPubAdapter
05-15 10:10:47.473: I/dalvikvm(16412): Rejecting re-init on previously-failed class Lcom/mopub/mobileads/dfp/adapters/MoPubAdapter; v=0xa4d47be8
05-15 10:10:47.473: W/Ads(16412): Could not instantiate mediation adapter: com.mopub.mobileads.dfp.adapters.MoPubAdapter. com.mopub.mobileads.dfp.adapters.MoPubAdapter
05-15 10:10:47.473: I/Ads(16412): Trying mediation network: 5450213213286189855
05-15 10:10:47.473: I/Ads(16412): Instantiating mediation adapter: com.google.ads.mediation.admob.AdMobAdapter
05-15 10:10:47.473: W/Ads(16412): Server parameters: {“gwhirl_share_location”:“1”,“pubid”:“ca-app-pub-5277082322505112/8521961786/qdata=AJ5UM1kCVf41j55CB-_SPzc3Z62zVYq6cBA2kBr7th5OlsSJCFZa61yPGRf6EvFSFNE8-eqdoIZXMNsikoz0iaQBwLK2CfoQNyLC5ZXyTdhHA8UO9Q&allocation_ids=4433792869532879”}
05-15 10:10:47.473: W/GooglePlayServicesUtil(16412): Google Play services is missing.
05-15 10:10:47.477: I/Ads(16412): Starting ad request.
05-15 10:10:47.477: I/Ads(16412): Use AdRequest.Builder.addTestDevice(“173230171DD16042118D1A86C149DC58”) to get test ads on this device.
05-15 10:10:47.485: I/Ads(16412): CsiReporterFactory: CSI is not enabled. No CSI reporter created.
05-15 10:10:47.713: I/chromium(16412): [INFO:CONSOLE(0)] “Document was loaded from Application Cache with manifest https://googleads.g.doubleclick.net/mads/static/mad/sdk/native/sdk-core-v40.appcache”, source: https://googleads.g.doubleclick.net/mads/static/mad/sdk/native/sdk-core-v40.html (0)
05-15 10:10:47.717: I/chromium(16412): [INFO:CONSOLE(0)] “Application Cache Checking event”, source: https://googleads.g.doubleclick.net/mads/static/mad/sdk/native/sdk-core-v40.html (0)
05-15 10:10:47.717: I/chromium(16412): [INFO:CONSOLE(0)] “Application Cache NoUpdate event”, source: https://googleads.g.doubleclick.net/mads/static/mad/sdk/native/sdk-core-v40.html (0)
05-15 10:10:48.213: I/Ads(16412): No fill from ad server.
05-15 10:10:48.273: W/Ads(16412): Failed to load ad: 3
05-15 10:10:48.273: I/Ads(16412): No fill from any mediation ad networks.
05-15 10:10:48.273: I/Ads(16412): Scheduling ad refresh 60000 milliseconds from now.
05-15 10:10:48.273: W/Ads(16412): Failed to load ad: 3

What could be wrong?


#2

Hello Sartheris,

Just to clarify here, you are integrating MoPub through AdMob’s mediation as defined below, correct?
https://dev.twitter.com/mopub/third-party/dfp

What is your MoPub account username? (feel free to PM this to me)

What ad format are you trying to set up? What is the ad unit id?

What MoPub SDK version are you using? What AdMob SDK version are you using?

Let us know these details, so we can troubleshoot your specific issue.

Thanks,
Edward


#3

Hello.

Yes, I have done the integration as explained there.

Mopub username: marketing@purplebeard.eu
I am trying with bottom banner ad, with this ID - f16521c224284ce28d1f726dc7501824
The SDKs are all latest versions.


#4

Hello Sartheris,

I was able to test your ad unit and it is requesting Marketplace ads on our side.

Can you point us to the specific GameMaker Extension you are using? We are not familiar with things we have not created, so any insight on this end would help us troubleshoot your issue.

From my understanding, you require a jar of our SDK file to integrate into your project, correct? Were you able to generate a mopub-sdk.jar file to integrate into your mediation? To generate a mopub-sdk.jar file, you can import the mopub-sdk as a project and export it as a jar file by right clicking the mopub-sdk, selecting Export, Java, and JAR file in eclipse.

Let me know the above and any additional details you think may be relevant and we can further troubleshoot.

Thanks,
Edward


#5

Hello.


I download the SDK from here (tried with both FULL and BASE), and when I import them, they are full of errors, and can not export them as .jar files.
Also the SDKs are not specifically for Eclipse, so its even harder


#6

Hello,

Could you provide a link to the GameMaker Extension you are using as mentioned before?

You should still be able to construct the JAR file for the MoPub SDK despite the errors and warnings following the instructions above. If you can not do this, please let us know.

Thanks,
Edward


#7

Hey.

We are building the said extension ourselves, that’s not the problem, as I am first testing it in a normal Android project in Eclipse.

And yes, I was able to compile a .jar file from the mopub-sdk folder, but I don’t know if it will work, because of the errors.


#8

I just tried again, compiling a .jar file WITH the compile errors from the MoPub SDK (which by the way seems really unprofessional, distributing SDK packages filled with errors), and I am still getting error with this compiled .jar file from the mopub-sdk library project.