Mediation with Vungle

258 views
Skip to first unread message

Lee Keng Lou

unread,
Jul 21, 2016, 6:23:52 AM7/21/16
to Google Mobile Ads SDK Developers
Hi Veer,

Do you have any sample application that already integrated Vungle into Unity3d Android?
I did integrated the Vungle into Admob but seems like can't get any rewarded Video Ads Loaded(keep getting Fail to load ad:3).
I did try to run the Vungle Demo myself with my own Vungle Application Id in Android Unity and that's works.

Thank you.

Best Regards,
Lee Keng Lou

Veer Arjun Busani(Mobile Ads SDK Team)

unread,
Jul 21, 2016, 11:12:25 AM7/21/16
to Google Mobile Ads SDK Developers
Hi Lee,

Can you try using this sample app? It does have Vungle among other Mediation networks integrated. Basically you need to import Vungle's SDK and adaptor into the Assets > Plugins > Android > GoogleMobileAds > libs folder. Then declare the required Vungle activity in the Manifest file. Error Code 3 could also mean that you have not properly setup your Ad Unit ID. Can you send me your Ad Unit ID for us to look into this as well.

Thanks,
Veer Busani
Mobile Ads SDK Team

Lee Keng Lou

unread,
Jul 21, 2016, 10:56:26 PM7/21/16
to Google Mobile Ads SDK Developers

Hi Veer,

did you forget to link a sample app for me??? hehe...

ya i had put the Adapter's Jar and also the SDK's jars into the place that you told, my folder structure as below:



Besides that, below is the Manifest of my GoogleMobileAds Library:
<?xml version="1.0" encoding="utf-8"?>

<!--

This Google Mobile Ads plugin library manifest will get merged with your

application's manifest, adding the necessary activity and permissions

required for displaying ads.

-->

<manifest xmlns:android="http://schemas.android.com/apk/res/android"

    package="com.google.unity"

    android:versionName="1.0"

    android:versionCode="1">

  <uses-sdk android:minSdkVersion="9"

      android:targetSdkVersion="19" />

  <!-- Google Mobile Ads Permissions -->

  <uses-permission android:name="android.permission.INTERNET" />
  <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
  <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />

  <!-- Uncomment to add billing for in-app purchase ads -->
  <!--<uses-permission android:name="com.android.vending.BILLING"/> -->

  <application>

    <!-- Denote the referenced Google Play services version -->
    <meta-data android:name="com.google.android.gms.version"
        android:value="@integer/google_play_services_version" />

    <!-- Google Mobile Ads Activity -->
    <activity android:name="com.google.android.gms.ads.AdActivity"
        android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize"
        android:theme="@android:style/Theme.Translucent" />

    <!-- InAppPurchase Activity -->
    <activity android:name="com.google.android.gms.ads.purchase.InAppPurchaseActivity"
        android:theme="@style/Theme.IAPTheme"/>



    <!-- adcolony activities -->
    <activity
        android:name="com.jirbo.adcolony.AdColonyOverlay"
        android:configChanges="keyboardHidden|orientation|screenSize"
        android:theme="@android:style/Theme.Translucent.NoTitleBar.Fullscreen" />
    <activity
        android:name="com.jirbo.adcolony.AdColonyFullscreen"
        android:configChanges="keyboardHidden|orientation|screenSize"
        android:theme="@android:style/Theme.Black.NoTitleBar.Fullscreen" />
    <activity
        android:name="com.jirbo.adcolony.AdColonyBrowser"
        android:configChanges="keyboardHidden|orientation|screenSize"
        android:theme="@android:style/Theme.Black.NoTitleBar.Fullscreen" />

    <!--- Chartboost-->
    <activity android:name="com.chartboost.sdk.CBImpressionActivity"
        android:excludeFromRecents="true"
        android:hardwareAccelerated="true"
        android:theme="@android:style/Theme.Translucent.NoTitleBar.Fullscreen"
        android:configChanges="keyboardHidden|orientation|screenSize"/>

    <!--Vungle-->
    <activity
         android:name="com.vungle.publisher.FullScreenAdActivity"
         android:configChanges="keyboardHidden|orientation|screenSize"
         android:theme="@android:style/Theme.NoTitleBar.Fullscreen"/>

    <!--- Facebook

    <activity android:name="com.facebook.ads.InterstitialAdActivity"
              android:configChanges="keyboardHidden|orientation|screenSize" />-->

    <!-- Apps targeting api v13 and higher should add '|screenSize' to the InterstitialAdActivity configChanges to support video rotation
    <activity android:name="com.facebook.samples.ads.debugsettings.DebugSettingsActivity" />-->

  </application>
</manifest>


I feel that it's more inappropriate if i show my ad unit id here. Can i send you an email regarding of this? Can you provide me an email so that I can send you the AdUnit Id?

Thank you very much.


Best Regards,
Lee Keng Lou

Auto Generated Inline Image 1
Auto Generated Inline Image 2

Lee Keng Lou

unread,
Jul 21, 2016, 11:00:52 PM7/21/16
to Google Mobile Ads SDK Developers
Hi Veer,

Just to add on,

I had try for other mediation ads and that works. What i left is just Vungle.(I purposely disable mediation to other network and left just Vungle in order to test the video from Vungle but seems no luck). Hope this details will make progress on this problem that i faced.

Thank you.

Veer Arjun Busani(Mobile Ads SDK Team)

unread,
Jul 22, 2016, 12:43:08 PM7/22/16
to Google Mobile Ads SDK Developers
Hi Lee,

I thought I linked my sample app! Sorry for that. Also, you can send your Ad Unit ID by replying privately to me. Here is my test Ad Unit ID: ca-app-pub-6745644712123529/5319246897, which only has Vungle in the Mediation stack. If you are able to receive ads, we can deduce the issue is with your Ad Unit ID only.

Thanks,
Veer Busani
Mobile Ads SDK Team

Lee Keng Lou

unread,
Jul 26, 2016, 7:33:56 AM7/26/16
to Google Mobile Ads SDK Developers
Hi Veer,

after some try and errors and using some libraries from your sample app, it works!
But until now i found a problem for Mediation with Vungle and I'm not sure to whom i should address the issue.
The problem is the event "OnAdClosed" is called before "OnAdRewarded ". This is different from other mediation networks and the "OnAdRewarded " are not always called actually. This brings problem to player as after they view the ads, they won't be able to get any rewards as the ads close is detected and the play is consider done. Is it possible to let me know to whom i should address this issue?

Thank you.

Lee Keng Lou

unread,
Jul 26, 2016, 7:38:32 AM7/26/16
to Google Mobile Ads SDK Developers
Hi Veer,

Sorry for some misleading information. The "OnAdRewarded" are not always called means it only get called once a view is completed right? so if player doesn't manage to finish the view, it won't be called. so we can't depend on "OnAdRewarded" event to close the view deal, we still need to use the "OnAdClosed" as the trigger for the view complete and that actually should be the last call of everything.

Thank you.

Veer Arjun Busani(Mobile Ads SDK Team)

unread,
Jul 26, 2016, 11:55:50 AM7/26/16
to Google Mobile Ads SDK Developers
Hi Lee,

Exactly right. You need to listen to OnAdClosed method to know whether the user has closed the Reward Video AdView. If the user has completed watching the entire video, then the SDK would fire OnAdRewarded. Note that you would be notified if the user has been rewarded or not before the OnAdClosed is called.

Thanks,
Veer Busani
Mobile Ads SDK Team

Lee Keng Lou

unread,
Jul 26, 2016, 10:13:06 PM7/26/16
to Google Mobile Ads SDK Developers
Hi Veer,

Currently Vungle Adapter doesn't do it the same way as i know. That makes difficulty for me during my integration for Vungle SDK. do you have any idea on how to solve this? or is that means i need to report again to Vungle Team?

Thank you.

Veer Arjun Busani(Mobile Ads SDK Team)

unread,
Jul 27, 2016, 10:59:31 AM7/27/16
to Google Mobile Ads SDK Developers
Hi Lee,

I have just now tested using the Vungle's Android adaptor and I received onRewarded() before onAdClosed() was fired. You can look up this log. Can you send us a sample app, which would reproduce this issue? 

Thanks,
Veer Busani
Mobile Ads SDK Team

Lee Keng Lou

unread,
Jul 28, 2016, 2:34:15 AM7/28/16
to Google Mobile Ads SDK Developers
Hi Veer,

Thanks for keep so helpful with me, as I checked today again it seems like the problem is gone. thanks once again.

Regards,
Lee Keng Lou
Reply all
Reply to author
Forward
0 new messages