nabrozidhs / unity_admob_android

Basic Unity3D plugin for AdMob Google Play Services version.
MIT License
25 stars 13 forks source link

Smart banner ads stretching to full screen or showing interstitials instead. #9

Closed JOSSCON closed 10 years ago

JOSSCON commented 10 years ago

Hi. Thanks for the plugin!

I am using MobFox as a mediation network through AdMob, but whenever ads come from MobFox they are either: what look like smart banner sized ads that are being stretched full screen, or an interstitial style ad that fills the whole screen.

If I remove the mediation and only get ads from AdMob then it all works fine, however if possible I still would rather include the mediation with MobFox.

I am creating the ad with the CreateBanner function, where the ad size is SMART_BANNER and the interstitial ID is null.

If you could help me figure out a fix for this I would be very grateful.

Thanks, Joss

nabrozidhs commented 10 years ago

My guess is that there is a clash between the two plugins. Can you point me to the MobFox plugin?

JOSSCON commented 10 years ago

Thanks for the quick reply! This contains the jar file I added to the plugins/android folder in my unity project. I also had to add some lines to the manifest as it says in the readme(also in the zip).

https://www.dropbox.com/s/d0pllgt9em9dsye/MobFox_Android_SDK%2BMediation.zip

nabrozidhs commented 10 years ago

Well that jar is for the android side how do you integrate it on your Unity project?

JOSSCON commented 10 years ago

All I did was add the AdSdk_5.0.0 jar file to the Plugins/Android folder in my Unity project and add a new activity to the android manifest. The mediation is set up through the AdMob website and I think that a call from the AdMob plugin will get an ad from MobFox if it is available in the user's area. So I think it kind of adds to the AdMob stuff rather than acts as something separate.

nabrozidhs commented 10 years ago

Any update on this?

JOSSCON commented 10 years ago

In the end I released my game with just the AdMob ads and no mediation, as I could not figure out how to get it working; the mobfox ads would still show interstitials sometimes.

nabrozidhs commented 10 years ago

Sorry to hear that :(

Did you use this library? I'd be making a new game soon and I'd like to revamp the library and add some proper documentation so it will be nice having a list of games using it.

JOSSCON commented 10 years ago

Yes I did, and it was really easy to set up and has good functionality so thank you for making it! My game can be downloaded here: https://play.google.com/store/apps/details?id=com.JossHarrisGames.RocketRoy It's nothing special but I hope you like it :)