Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
4
Question by sampenguin · Feb 18, 2014 at 10:16 PM · androidiosadmob

Where to put AdMob mediation adapter files in Unity?

This seems like a relatively fundamental step, but I have searched high and low for the exact location to place the various 3rd party adapter files to get them included correctly in Unity on both Android and iOS builds and nobody says it explicitly. Sorry if this is a dumb question but I would really love a simple answer if someone has it!

I have integrated AdMob correctly (using prime31's plugin, although now I've found Google has their own Unity package for free) and am getting ads served from AdMob. I can also see that I'm correctly making requests to my mediation networks (e.g. InMobi, mMedia), but getting no fill rate. On Android if I check the logcat, I see something like

 02-18 14:57:27.589: E/Ads(13297): Cannot find adapter class 'com.google.ads.mediation.inmobi.InMobiAdapter'. Did you link the ad network's mediation adapter? Skipping ad network.

For Android, I've tried putting the jar files under /Plugins/Android, in subfolders, and outside of that directory, but it doesn't seem to link. I do also have the core SDKs for each of the mediated networks included. For iOS I assume I'm having a similar problem on putting the adapters in the right place, but am trying to just get it working on Android first.

I've also checked that the .jar files are actually compiled .class files (i.e. they are not just source, so they should be able to be included as is without compiling in Eclipse, etc.).

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

2 Replies

· Add your reply
  • Sort: 
avatar image
4
Best Answer

Answer by sampenguin · Feb 19, 2014 at 01:48 AM

Figured this out for Android at least. It seems the jar files can NOT be nested in any subfolders under /Plugins/Android (both the SDK jars and adapter jars need to be in that folder and not in subfolders). Once I did this, the app finally connected correctly to mediation service.

Hopefully this saves someone else the time I spent trying to be organized and just shooting myself in the foot :P

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image BeforeTheLight · Jul 29, 2014 at 09:08 PM 0
Share

Excellent advice! I played with this for a while until I found this post. This was the case for Flurry also as I see you were using inmobi, I just move them out of their folder into the /plugins/Android folder and everything works.

avatar image
0

Answer by buganblack · Feb 28, 2014 at 08:57 AM

how can i check that my app is using the mediation or not??can you please help me...i tried to use admob mediation but i cant seem to convert the native android tutorial to unity

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

19 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

unity 5 2d game admob interstitial not working 0 Answers

Admob Memory Issues 0 Answers

Unity Admob Implementing Interstitial 1 Answer

AdMob in Editor? 1 Answer

Interstitial pause game on Android but not on iOS? 5 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges