distriqt / ANE-Adverts-Mediation

Mediation adapters for the Adverts ANE
https://airnativeextensions.com/extension/com.distriqt.Adverts
12 stars 0 forks source link

Ironsource mediation fails to return RewardedVideoAdEvent.CLOSED, or RewardedVideoAdEvent.REWARD events #14

Closed FatRedBird closed 3 years ago

FatRedBird commented 3 years ago

Hi,

We recently added the distriqt applovin, facebook and ironsource add mediation anes to our app.

Applovin and Facebook seem to work fine, but ironsource does not appear to send out the correct events when an advert is closed.

We are listening for


            rewardedVideoAd.addEventListener( RewardedVideoAdEvent.CLOSED, closedHandler );
            rewardedVideoAd.addEventListener( RewardedVideoAdEvent.REWARD, rewardHandler );

and whilst this code works with other adverts, ironsource adverts do not seem to trigger these events.

In our action script, at the start of the app we call

    var Ironsource:AdMobIronSource = com.distriqt.extension.admob.ironsource.AdMobIronSource.instance;
    Ironsource.init();
    Ironsource.validateIntegration();
    Ironsource.setConsent( true ); 

before loading any adverts, this yields the following in logcat

2020-07-21 16:35:20.420 1590-1590/? I/IntegrationHelper: --------------- IronSource  --------------
2020-07-21 16:35:20.431 1590-1590/? I/IntegrationHelper: com.ironsource.sdk.controller.ControllerActivity - VERIFIED
2020-07-21 16:35:20.434 1590-1590/? I/IntegrationHelper: com.ironsource.sdk.controller.InterstitialActivity - VERIFIED
2020-07-21 16:35:20.438 1590-1590/? I/IntegrationHelper: com.ironsource.sdk.controller.OpenUrlActivity - VERIFIED
2020-07-21 16:35:20.438 1590-1590/? I/IntegrationHelper: >>>> IronSource - VERIFIED
2020-07-21 16:35:21.645 1590-1590/? D/com.distriqt.IronSource: IronSourceController::setConsent( true )
2020-07-21 16:35:21.648 1590-1590/? I/ironSourceSDK: API: setConsent : true
2020-07-21 16:35:21.663 1590-3214/? V/ironSourceSDK: EVENT: {"eventId":40
    "timestamp":1595345721652
    "provider":"Mediation"
    "eventSessionId":"606a9aad-256c-4cba-9702-af12a6dda208"}
2020-07-21 16:35:38.970 1590-1590/? I/ironSourceSDK: INTERNAL: com.ironsource.mediationsdk.IronSourceObject:setMediationType(mediationType:AdMob310)
2020-07-21 16:35:38.971 1590-1590/? I/ironSourceSDK: API: init(appKey:7e385635)
2020-07-21 16:35:39.006 1590-3214/? V/ironSourceSDK: EVENT: {"eventId":14
    "timestamp":1595345739004
    "provider":"Mediation"
    "isDemandOnly":1
    "rewardedVideo":true
    "sessionDepth":1
    "eventSessionId":"606a9aad-256c-4cba-9702-af12a6dda208"
    "connectionType":"wifi"}
2020-07-21 16:35:39.006 1590-1590/? V/ironSourceSDK: INTERNAL: setInitStatus(old status: NOT_INIT, new status: INIT_IN_PROGRESS)
2020-07-21 16:35:40.115 1590-3495/? V/ironSourceSDK: NATIVE: setLoggerDebugLevel(loggerName:console ,debugLevel:3)
2020-07-21 16:35:43.153 1590-1590/? D/IronSourceMediationAdapter: IronSource loadRewardedVideo called with instanceId: 0
2020-07-21 16:35:43.153 1590-1590/? D/IronSourceMediationAdapter: IronSourceManager change state to LOCKED
2020-07-21 16:35:47.174 1590-1590/? D/IronSourceMediationAdapter: IronSourceManager got RV Load success for instance 0
2020-07-21 16:35:47.174 1590-1590/? D/IronSourceMediationAdapter: IronSource load success for instanceId: 0

we included the xml snippet

<!-- DISTRIQT IRONSOURCE ADVERTS START-->
<!-- IRONSOURCE -->
<activity
    android:name="com.ironsource.sdk.controller.ControllerActivity"
    android:configChanges="orientation|screenSize"
    android:hardwareAccelerated="true" />
<activity
    android:name="com.ironsource.sdk.controller.InterstitialActivity"
    android:configChanges="orientation|screenSize"
    android:hardwareAccelerated="true"
    android:theme="@android:style/Theme.Translucent" />
<activity
    android:name="com.ironsource.sdk.controller.OpenUrlActivity"
    android:configChanges="orientation|screenSize"
    android:hardwareAccelerated="true"
    android:theme="@android:style/Theme.Translucent" />
<!-- DISTRIQT IRONSOURCE ADVERTS END-->

and, naturally, the ironsource ane. This has only been tested on android. We figure theres either a problem with ironsource, the ane, or our implementation, could you please advise us how to proceed?

many thanks,

marchbold commented 3 years ago

Right, this is tough one as we don't control these events. They are driven internally through the SDK and mediation extensions.

Best we can do is wait for a fix from the IronSource / AdMob developers.

Do you get events from other ad types (interstitials for example)?

FatRedBird commented 3 years ago

We don't any other advert types, so I'm not sure what events work for them. All I know is

    rewardedVideoAd.addEventListener( RewardedVideoAdEvent.CLOSED, closedHandler );
    rewardedVideoAd.addEventListener( RewardedVideoAdEvent.REWARD, rewardHandler );

are working with admob, applovin and facebook adverts, and missing from ironsource.

marchbold commented 3 years ago

Could you verify this is still happening with the latest SDK version?

FatRedBird commented 3 years ago

Hi, sorry I no longer work for the company this ane was being used with so I can't check.

marchbold commented 3 years ago

No problems, thanks for letting us know.

I believe this has been resolved.