Search Unity

Rewarded video under AdMob mediation not calling events

Discussion in 'Unity Ads & User Acquisition' started by rsodre, Sep 18, 2017.

  1. rsodre

    rsodre

    Joined:
    May 9, 2012
    Posts:
    229
    Hi.

    This week I upgraded my AdMob plugin and all networks, and noticed that Unity Ads rewarded videos are not calling AdMob events after the video starts.
    It calls OnAdLoaded, OnAdOpening, the video plays, but then it will never call OnAdRewarded or OnAdClosed.

    AdMob videos calls everything perfectly, OnAdRewarded when it finishes and OnAdClosed when it closes. Just Unity Ads that won't call them.

    Is there any known problem around here?

    My setup...

    Building for Android (Gradle)
    Unity 5.6.3
    Google Mobile Ads Plugin 3.7.0
    Unity Ads 2.1.1 (from the asset store)
    Unity Ads adaptor for Android 2.1.1
    macOS 10.12.7
     
    Last edited: Sep 18, 2017
    maydinunlu likes this.
  2. maydinunlu

    maydinunlu

    Joined:
    Nov 30, 2015
    Posts:
    3
    hi @rsodre,

    could you fix? i have the same issue.
     
  3. rsodre

    rsodre

    Joined:
    May 9, 2012
    Posts:
    229
  4. maydinunlu

    maydinunlu

    Joined:
    Nov 30, 2015
    Posts:
    3
    @rsodre, i saw the these emails yesterday, thank you for the reply. i follow up the progress
     
  5. rsodre

    rsodre

    Joined:
    May 9, 2012
    Posts:
    229
    I've sent a full project with the problem isolated, complete sources, compiled APK and logs showing the problem, and one week later the Mobile Ads support engineer don't know what to do with it.

    Can anyone on the Unity Ads team take a look at this?
    Unity Ads mediation on AdMob is broken.
     
  6. rsodre

    rsodre

    Joined:
    May 9, 2012
    Posts:
    229
    The AdMob team sent me a new updated project to test. It works perfectly.
    If I import the test script and add to my game scene, it also works.
    I started removing things and guess what was causing the problem..
    Calling Advertisement.Initialize(appId) !!!
    AdMob already initializes Unity Ads, calling it twice messes it up.

    Please Unity Ads team, fix this!!!
    Just check if already initialized and don't mess up.
    Such a simple bug caused me so much trouble.
     
  7. qq543246541

    qq543246541

    Joined:
    Mar 17, 2018
    Posts:
    4
  8. rsodre

    rsodre

    Joined:
    May 9, 2012
    Posts:
    229
    I think the problem was that I was initializing Unity Ads with Advertisement.Initialize().
    The mediation module initializes it again later and nothing works.
    When I removed my Advertisement.Initialize(), the problem stopped.
     
  9. plusgamesgulcanyazir

    plusgamesgulcanyazir

    Joined:
    Feb 12, 2019
    Posts:
    6
    Sorry for necroing an old post, but might help someone in the future. Yours might be a different problem. Still, might worth checking my solution to a similar problem here.